Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我有一个关于TimePickerAndroid 的问题。我已按照本指南创建时间选择器。它可以工作,但问题是我想要一个具有可滚动选项的时间选择器,就像在这个中一样,而不是让你按 + 或 - 来更改时间。
TimePicker
我在页面和代码中环顾四周,无法理解如何将其更改为可滚动选择器。
我所做的是添加库app_compatv7 并添加
<style name="AppBaseTheme" parent="Theme.AppCompat.Light"> <!-- API 11 theme customizations can go here. --> </style>
并将主题添加到您manifest.xml将获得新的date picker
manifest.xml
date picker