使Android原生时间选择器样式为滚轮
16lz
2021-01-23
很简单,修改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 发送短信 源代码
- Android:如何实现例如iOS的listview 的弹性效果
- android 常用代码备份
- android AnimationDrawable类实现动画效果
- [Android] 代码实现按钮/图片自旋转(中心旋转)
- android 的C++代码都加 namespace android
- Android代码混淆一定要Export Android Application,否则不起效
- Android的Location功能代码
- 页面跳转采用滑动效果