jjzjj

TextAppearance

全部标签

android - 检索项目 : No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title' 的父项时出错

我正在实现ActionBar以在xml中使用此样式脚本设置文本的颜色,但是当我运行我的应用程序时出现错误有人知道我缺少什么这是我的style.xml文件@drawable/window_background@style/ActionBar@integer/text_header_max_lines@integer/track_abstract_max_lines-->@drawable/window_background_home@style/ActionBar@color/actionbar_background@color/accent_1@style/ActionBarText@

android - 检索项目 : No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title' 的父项时出错

我正在实现ActionBar以在xml中使用此样式脚本设置文本的颜色,但是当我运行我的应用程序时出现错误有人知道我缺少什么这是我的style.xml文件@drawable/window_background@style/ActionBar@integer/text_header_max_lines@integer/track_abstract_max_lines-->@drawable/window_background_home@style/ActionBar@color/actionbar_background@color/accent_1@style/ActionBarText@

android - 如何以编程方式设置 TextAppearance

我正在尝试以编程方式设置TextView的TexAppearance。我查看了SetTextApparence和TextView构造函数的第三个参数。我可以设置其中一种Android样式:lvTextView.SetTextAppearance(Context,Android.Resource.Style.TextAppearanceMedium);但我不知道如何设置我自己的应用程序样式。引用我的样式的语法是什么? 最佳答案 假设你的风格是这样的:bold...您可以通过编程方式将TextView的外观设置为:TextViewtex

android:lineSpacingMultiplier 在 android:textAppearance 中不起作用

我正在尝试在我的textAppearance样式(android:textAppearance)中添加android:lineSpacingMultiplier,但它不起作用。我做错了什么吗?TextAppearance样式:1.25样式的使用: 最佳答案 无论出于何种原因,android:lineSpacingMultiplier都无法作为您的textAppearance中的项目使用。您要么必须将其直接设置为TextView属性(使用android:lineSpacingMultiplier),要么创建一个“包装”设置textAp

android - textAppearance 在 TextView 中不起作用

我在TextView中显示链接文本。一开始,我的代码是这样的:match_parentwrap_content13dp#fff#fff000它工作正常。链接文本显示如下:这就是我想要的。但是,在我将有关文本的属性移动到样式中之后。它工作不正常。13dp#fff#fff000match_parentwrap_content@style/informed_consent_content_textAppearance链接文本显示错误的颜色:然后,我将textAppearance属性移动到TextView中。但还是错了。我的设备是4.1.2。谁能帮帮我。非常感谢。

android - 无法解析符号'android :TextAppearance. Material.Widget.Button.Inverse

我已经在androidstudio中创建了项目,但是出现了以下错误。错误:C:\Learning\Android\Design\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.1.1\res\values-v23\values-v23.xmlError:(1)Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'android:TextAppearance.Material.Widget.Button.Inv

android - Gradle 构建 : resource android:style/TextAppearance. 未找到 Material

我刚刚安装了AndroidStudio并导入了一个旧的EclipseADT项目(API级别18)。但是,当尝试在AndroidStudio中构建此项目时,出现以下错误:resourceandroid:style/TextAppearance.Materialnotfound.resourceandroid:style/TextAppearance.Material.Body1notfound.resourceandroid:style/TextAppearance.Material.Body2notfound.resourceandroid:style/TextAppearance.M

android - android中textAppearance的默认值是:theme ="@style/AppTheme" textAppearanceSmall?

新建android项目时,默认的Theme是android:Theme.Light,发现TextView控件的字体偏小,是不是说android:theme="@style/AppTheme"中textAppearance的默认值是textAppearanceSmall?谢谢! 最佳答案 您可以在默认的styles.xml文件中找到用于所有Android小部件的样式。例如,您可以在此处查看此文件:https://github.com/android/platform_frameworks_base/blob/master/core/r

android:使用 textAppearance 属性设置 textColor

我在我的应用程序中为字体创建了多种样式。如何将这些样式添加到View中?-1)使用样式属性2)使用textAppearance。使用样式不是一个选项,因为View可能有其他属性(边距、填充、最小宽度等-我不能为View指定2种样式),所以我需要单独指定与文本相关的属性,但是android:textColor在这里不起作用:样式.xml:?android:textAppearanceSmallsans@android:color/white15sp布局.xml:为什么它不起作用?如何在textappearance中指定文本颜色? 最佳答案

android - "@android:style/TextAppearance.StatusBar.EventContent.Title"在 android L 中将颜色设置为白色而不是灰色

AndroidL为通知使用白色背景,为上面的文本使用灰色。但是,"@android:style/TextAppearance.StatusBar.EventContent.Title"仍然将TextView的颜色设置为与KitKat或以前版本中相同的白色。它应该返回AndroidL的新通知样式中使用的灰色。我该如何解决?提前致谢。 最佳答案 看来android-L并没有覆盖"@android:style/TextAppearance.StatusBar.EventContent.Title",而是引入了新的样式@color/prim