使Android原生时间选择器样式为滚轮
16lz
2021-12-04
很简单,修改styles.xml代码
<style name="AppBaseTheme" parent="android:Theme.Light">
style>
<style name="AppTheme" parent="AppBaseTheme">
style>
为:
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
style>
<style name="AppTheme" parent="AppBaseTheme">
style>
然后
AndroidManifest.xml文件中设置android:theme="@style/AppTheme"
<application
android:name=".AppContext"
android:allowBackup="true"
android:icon="@drawable/logo"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" >
application>
运行程序可观察前后对比效果
更多相关文章
- Android(安卓)Studio 运行时出现 finished with non-zero exit v
- Android开发问题记录——“The connection to adb is down...”
- Android(安卓)CalendarView 使用
- Android(安卓)多式样ProgressBar
- Android上的并发服务
- Android应用程序窗口(Activity)的运行上下文环境(Context)的创建过程
- 想抢先体验Android操作系统的魅力吗?那就使用Android(安卓)LiveCD
- android的编译和运行过程深入分析
- FFmpeg在Android上的移植优化步骤