AndroidMainifest.xml文件属性

复制代码
 1 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
 2     package="com.example.first">
 3 
 4     <uses-permission android:name="android.permission.INTERNET" />
 5 
 6     <application
 7         android:allowBackup="true"
 8         android:icon="@mipmap/ic_launcher"
 9         android:label="@string/app_name"
10         android:roundIcon="@mipmap/ic_launcher_round"
11         android:supportsRtl="true"
12         android:theme="@style/Theme.First">
13         <!-- android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"  把这句话放在这的话是所有的页面都会去掉标题栏 -->
14         
61         <activity
62             android:name=".TextViewActivity"
63             android:exported="false" />
64         <activity
65             android:name=".ButtonActivity3"
66             android:exported="false" />
67         <activity
68             android:name=".MainActivity"
69             android:exported="true">
70             <!-- android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"  这是去掉当前标题栏的意思 -->
71             <!-- android:label="Test"  设置当前标题栏的文字 -->
72             <!-- android:screenOrientation="portrait"  这个就是手机屏幕默认竖屏,不设置也可以 -->
73             <!-- android:screenOrientation="landscape"  这样就是横屏了 -->
74             <intent-filter>
75                 <action android:name="android.intent.action.MAIN" />
76 
77                 <category android:name="android.intent.category.LAUNCHER" />
78             </intent-filter>
79             <!--<category>标签下LAUNCHER意思就是默认启动的activity -->
80         </activity>
81     </application>
82 
83 </manifest>
复制代码

 

posted @   KongLong_cm  阅读(59)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
点击右上角即可分享
微信分享提示