新手小白问题 android:theme 如果需要用到多个要怎么写?

Fanny 2011-12-21 11:29:33

<activity android:name=".AboutActivity" android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar"
android:theme="@android:style/Theme.Translucent">
</activity>


我希望又能隐藏上面的title,又能将当前的activity透明,可是如果这两条一起写的活,我保存时就提示错误
Multiple annotations found at this line:
- error: Error parsing XML: duplicate attribute
- Attribute "theme" bound to namespace "http://schemas.android.com/apk/res/android" was
already specified for element "activity".

正确的应用怎样设置呢?
...全文
352 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Univac 2011-12-21
  • 打赏
  • 举报
回复
android:theme = "@android:style/Theme.Translucent.NoTitleBar"
安卓android 2011-12-21
  • 打赏
  • 举报
回复
android:theme="@android:style/Theme.NoTitleBar.Translucent"

80,472

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧