Android中TeaPickerView数据级联选择器功能的实例代码

  

Github地址   

YangsBryant/TeaPickerView   

(Github排版比较好,建议进入这里查看详情,如果觉得好,点个明星吧!)

  

 Android中TeaPickerView数据级联选择器功能的实例代码

  

引入模块         allprojects {   存储库{   谷歌()   jcenter ()   maven {url ' https://www.jitpack.io '}   }   }   实现“com.github.YangsBryant: TeaPickerView: 1.0.2”      

主要代码

        公开课MainActivity延伸AppCompatActivity {   @BindView (R.id.mButton)   按钮按钮;   List,mProvinceDatas=new ArrayList<的在();   Map<字符串,List   & lt; & # 63; xml version=" 1.0 " encoding=" utf - 8 " & # 63;比;   & lt;选择xmlns: android=" http://schemas.android.com/apk/res/android "比;   & lt;项目android: state_selected=" true " android:颜色=癅color/picker_select_text_color”/比;   & lt;项目android: state_pressed=" true " android:颜色=癅color/picker_select_text_color”/比;   & lt;项目android: state_checked=" true " android:颜色=癅color/picker_select_text_color”/比;   & lt;项目android: state_focused=" true " android:颜色=癅color/picker_select_text_color”/比;   & lt;项目android:颜色=癅color/picker_text_color”/比;   & lt;/selector>之前      

默认内容栏下划线

     <>之前   & lt; & # 63; xml version=" 1.0 " encoding=" utf - 8 " & # 63;比;   & lt; layer-list xmlns: android=" http://schemas.android.com/apk/res/android "比;   & lt; !——边框颜色值——比;   & lt; item>   & lt; shape>   & lt;固体android:颜色=癅color/station_average”/比;   & lt;/shape>   & lt;/item>   & lt;项目android:底部=? dp”比;& lt; !——设置只有底部有边框——比;   & lt; shape>   & lt;固体android:颜色=" # ffffff "/比;   & lt;/shape>   & lt;/item>   & lt;/layer-list>之前      


  

  

,以上所述是小编给大家介绍的Android中TeaPickerView数据级联选择器功能的实例代码,希望对大家有所帮助,如果大家有任何疑问请给我留的言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!

Android中TeaPickerView数据级联选择器功能的实例代码