【问题标题】:Android Studio: Theme Change - Empty ActivityAndroid Studio:主题更改 - 空活动
【发布时间】:2016-11-28 18:32:36
【问题描述】:

我开始了一个新的空活动。我在项目的开始。默认情况下,我的主题设置为 AppTheme。我不想要我的主题的标题栏。我将主题更改为 NoTitleBar 和许多其他主题。我收到此错误。

Missing styles. Is the correct theme chosen for this layout?  Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.   Failed to find '?attr/textEditSuggestionItemLayout' in current theme. (9 similar errors not shown)  Tip: Try to refresh the layout.

我尝试了很多其他主题,但我遇到了这样的错误。有没有办法让我选择一个我不想在我的应用程序上有标题栏的主题?

如果没有,如何更改标题栏的颜色并添加徽标?

【问题讨论】:

    标签: android


    【解决方案1】:

    从布局上方的方框中选择全息照明

    【讨论】:

    • 它还有一个标题栏
    • android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
    • 不起作用!!!当我将主题设置为您提到的以下内容时,我的问题说明了问题
    【解决方案2】:

    你是说,项目名称? 如果您不想在样式中使用此代码,可以使用 NoActionBar

     <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    
    </style>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-22
      • 2016-06-08
      • 1970-01-01
      • 2016-04-19
      • 1970-01-01
      • 1970-01-01
      • 2015-05-05
      • 2018-06-24
      相关资源
      最近更新 更多