首页 > 移动平台 > 详细

Android Studio目录的理解

时间:2020-02-03 19:47:10      阅读:65      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

 

app :创建项目后,自动创建一个名称为app的目录

manifests:保存配置文件

java:保存java源代码文件

res:保存资源文件

Gradle Scripts:保存Gradle构建和属性文件

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" //manifest根节点,描述了package中的所有内容
//xmlns:android包含命名空间的声明
    package="com.example.androiduidemo">//声明应用程序

    <application  
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"//应用程序图标
        android:label="@string/app_name"//应用程序标签,即为应用程序指定名称
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">//应用程序采用的主题
        <activity android:name=".MainActivity">//与用户交互的主要工具
            <intent-filter>//配置Intent过滤器
            //组件支持的Intent Action
                <action android:name="android.intent.action.MAIN" />
            //组件支持的Intent  Category
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

 

manifests节点

manifests节点用于显示Android应用程序的配置文件

Android Studio目录的理解

原文:https://www.cnblogs.com/wsq666/p/12256715.html

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