android开发APP基础配置

android开发APP基础配置

一、设置APP桌面图标

在AndroidManifest.xml配置文件中

<application
    android:allowBackup="true" //它表示是否允许应用程序参与备份,整个系统备份能导致所有应用程序数据通过ADB来保存
    android:icon="@mipmap/ic_launcher"  //app桌面log
    android:label="@string/app_name" //app桌面名称
    android:roundIcon="@mipmap/ic_launcher_round" //是圆形图标 属性已做废,这是一个只适用在Android 7.1系统上的过渡版本
    android:supportsRtl="true" //是否愿意支持从右到左(原来RTL就是right-to-left 的缩写...)的布局
    android:theme="@style/AppTheme"> //App Bar 主题风格的背景色 

以下三个文件是系统中常量的存放地方

colors.xml 颜色常量

strings.xml 常量

styles.xml  样式常量,像css文件

猜你喜欢

转载自blog.csdn.net/m0_37622302/article/details/107694398