专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Android

新手小白有关问题 android:theme 如果需要用到多个要如何写

发布时间:2010-05-30 10:56:19 文章来源:www.iduyao.cn 采编人员:星星草
新手小白问题 android:theme 如果需要用到多个要怎么写?
XML code

 <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".

正确的应用怎样设置呢?

------解决方案--------------------
android:theme="@android:style/Theme.NoTitleBar.Translucent"
------解决方案--------------------
android:theme = "@android:style/Theme.Translucent.NoTitleBar"
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: