【问题标题】:AppCombat v21 TextAppearance on Gingerbread with DarkActionBar姜饼上的 AppCombat v21 TextAppearance 与 DarkActionBar
【发布时间】:2014-12-17 18:22:45
【问题描述】:

我最近更新了 appcombat 库以集成材料设计。 但是样式“Theme.AppCompat.Light.DarkActionBar”存在问题,因为如果我使用这种样式并让我的 TextView 喜欢:

android:textAppearance="?android:attr/textAppearanceSmall

整个文本在白色背景上显得不可见(或只是白色)

如果使用“Theme.AppCompat.Light”主题,一切正常。 我只在运行 android 2.3 的设备上遇到这个问题。*

示例:(没有足够的声望发布图片,所以需要点击)

DarkActionBar:

Light:

大家有什么建议吗?有人用 Gingerbread 尝试过新的 appcombat 库吗?

【问题讨论】:

    标签: android android-2.3-gingerbread


    【解决方案1】:

    显然我发现我需要使用材质文本外观,例如:

    android:textAppearance="@style/TextAppearance.AppCompat.Body1" 
    

    另请参阅: http://www.google.com/design/spec/style/typography.html#typography-roboto-noto

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多