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