首页 > 移动平台 > 详细

Android 去掉标题栏

时间:2017-09-28 19:48:24      阅读:272      评论:0      收藏:0      [点我收藏+]

  技术分享

  修改styles.xml文件

1 <resources>
2 
3     <!-- Base application theme. -->
4     <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
5 
6     </style>
7 
8 </resources>

  在AndroidManifest.xml中引用styles.xml文件

1 <application
2         android:allowBackup="true"
3         android:icon="@mipmap/ic_launcher"
4         android:label="@string/app_name"
5         android:roundIcon="@mipmap/ic_launcher_round"
6         android:supportsRtl="true"
7         android:theme="@style/AppTheme">

 

  参考资料

  Android Studio中去除应用标题栏

Android 去掉标题栏

原文:http://www.cnblogs.com/WJQ2017/p/7608145.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!