android自定义spinner,使用AppCompatTextView+PopupWindow 实现下拉选择的功能
自定义spinner 自定义spinner,使用AppCompatTextView+PopupWindow 实现下拉选择的功能,代码简单,几个类 感谢 https://github.com/arcadefire/nice-spinner,本项目是对其的优化与扩展 1、实现了下拉菜单与现实view样式的分离,可单独对显示结果的textview进行样式的处理 2、对下拉菜单增加了分割线等等 …… 效果图 apk下载链接: https://github.com/supertaohaili/spinner/blob/master/app-debug.apk github: https://github.com/supertaohaili/Spinner 使用 allprojects { repositories { ... maven { url 'https://jitpack.io' } } } dependencies { compile 'com.github.supertaohaili:Spinner:1.0.0' } 示例代码: <org.angmarch.views.NiceSpinner android:id="@+id/spinner2" android:layout_width="200dp" android:layout_height="40dp" android