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>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义