{"repo":"skydoves/PowerSpinner","free":true,"listed":false,"github":"https://github.com/skydoves/PowerSpinner","clone":"git clone https://github.com/skydoves/PowerSpinner.git","description":"🌀 A lightweight dropdown popup spinner, fully customizable with an arrow and animations for Android.","language":"Kotlin","stars":1265,"topics":["kotlin","android","android-library","spinner","android-spinner","spinnerview","popup","skydoves"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"PowerSpinner 🌀 A lightweight dropdown popup spinner, fully customizable with an arrow and animations for Android. Including in your project Gradle Add the dependency below to your module's build.gradle file: SNAPSHOT Snapshots of the current development version of PowerSpinner are available, which track the latest versions. Usage Add the XML namespace below inside your XML layout file: PowerSpinnerView in XML You can implement PowerSpinnerView in your XML layout as the below example. You can use PowerSpinnerView same as TextView . For instance, you can set the default text with the hint and textColorHint attributes.. Create PowerSpinner with Kotlin extension You can also create the PowerSpinnerView programmatically with the Kotlin extension class. Note : It's highly recommended to set the height size of the item with the spinner item height attribute or the entire height size of the popup with the spinner popup height to implement the correct behaviors of your spinner. Show and Dismiss By default, the spinner popup will be displayed when you click the PowerSpinnerView , and it will be dismissed when you select an item. You can also show and dismiss manually with the methods below: You can customize the default behaviours of the spinner with the method and property below: OnSpinnerItemSelectedListener You can listen the selection of the spinner items with the setOnSpinnerItemSelectedListener method below: If you use Java, see the example below: Select an Item by an Index You ","default_branch":null,"files":null,"tree":[],"storefront":"/r/skydoves","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/skydoves/PowerSpinner/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}