简体   繁体   中英

custom date and time picker like in screenshot android

Is it possible to make a date and time picker like in screenshot having range of time intervals? 自定义日期和时间选择器

Chances are that is is possible. They way I would go about approaching it is place a scrollView inside your activity with a textView and a gridLayout inside of that. Set the numColumns=2 and then set android:stretchMode=AUTO_FIT . I would then place 7 Custom Views in there for the left column, and place 24 Custom Views into the right column. And then, of course add the Button at the bottom with its own styling.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM