xml:
<<FONT face=宋体>activity android:name=".FirstActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
在styles.xml文件中吧Theme主题改为
<<FONT face=宋体>style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
代码中实现:getSupportActionBar().hide();
本文介绍如何通过修改Android项目的styles.xml文件来改变应用的主题,并演示了如何在代码中使用getSupportActionBar().hide()方法来隐藏ActionBar。

2719

被折叠的 条评论
为什么被折叠?



