一、改app名
Android studio原始布局的设定全部在manifest中,对应app名为
android:label="@string/app_name"
只需到res->values->strings中更改相应字段即可
<resources>
<string name="app_name">app名</string>
</resources>
二、改图标
首先是找一张你需要的图片放入res->drawable中
然后同样是在manifest中,输入你刚刚放入的图标名字就完成了
android:icon="@drawable/icon"
三、去顶部活动栏
一个新创建的空的Android工程中其顶部活动栏会显示工程名,我们不一定会需要他
到res->values->styles中style标签下加入
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
可去除活动栏
四、顶部显示适配主题
如果你每一个界面都有相应背景图片,并且颜色不同那么需要在每一个Activity中的onCreate方法中加入
getWindow().setStatusBarColor(0xfffffff); //后6位为相应颜色代码
如果主题统一,则只需要改res->values->styles中**name=“colorPrimary”**部分
<item name="colorPrimary">@color/colorPrimary</item>
将中间color改为你所需要的颜色