wheelview

Android 省,市,区选择权

匿名 (未验证) 提交于 2019-12-02 23:34:01
版权声明:大家可以转载,请写明转载申明 https://blog.csdn.net/bzlj2912009596/article/details/90312251 需要WheelView基础控件自行扩展实现逻辑,可直接添加基础控件库,Gradle 依赖: compile 'com.contrarywind:wheelview:4.0.9' 布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> <include layout="@layout/include_pickerview_topbar" android:layout_width="match_parent" android:layout_height="@dimen/pickerview_topbar_height" /> <LinearLayout android:id="@+id/optionspicker" android:layout

自定义实现一个WheelView

做~自己de王妃 提交于 2019-12-01 05:15:30
一直都想实现一个自己的 WheelView ,现在处在找工作期间 ,就做了一个。还很丑,功能还很简单,持续更新吧,也算给自己挖个坑。 自定义的的属性就不贴了 代码如下: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 package com.yangxbfuj

自定义时间选择器

非 Y 不嫁゛ 提交于 2019-11-28 16:22:16
/** * 时间选择器 * */ public class DatePicker { private Context mContext; private SparseArray<View> mViews; private int mlayoutResId; private PopupWindow popupWindow; private View vPopupWindow; List<String> textList1 = new ArrayList<>(); List<String> textList2 = new ArrayList<>(); List<String> textList3 = new ArrayList<>(); List<String> textList4 = new ArrayList<>(); private int year; private int month; private int day; private String time; private int hour; private int howday; private String week; private int minute; private WheelView wheelView1; private WheelView wheelView2; private WheelView