TextView.SetTextAppearance メソッド

定義

オーバーロード

SetTextAppearance(Int32)

指定したスタイル リソースのテキストの外観を設定します。

SetTextAppearance(Context, Int32)

指定した TextAppearance リソースのテキストの色、サイズ、スタイル、ヒントの色、強調表示の色を設定します。

SetTextAppearance(Int32)

指定したスタイル リソースのテキストの外観を設定します。

[Android.Runtime.Register("setTextAppearance", "(I)V", "GetSetTextAppearance_IHandler", ApiSince=23)]
public virtual void SetTextAppearance (int resId);
[<Android.Runtime.Register("setTextAppearance", "(I)V", "GetSetTextAppearance_IHandler", ApiSince=23)>]
abstract member SetTextAppearance : int -> unit
override this.SetTextAppearance : int -> unit

パラメーター

resId
Int32

適用するスタイルのリソース識別子

属性

注釈

指定したスタイル リソースのテキストの外観を設定します。

カスタム スタイルandroid.R.style#TextAppearance_Material_Body1 @android:style/TextAppearance.Material.Body1で使用できる属性のセットについては、 や などのandroid.R.styleable#TextAppearance TextAppearanceフレームワーク定義TextAppearanceスタイルを使用します。

の Java ドキュメント android.widget.TextView.setTextAppearance(int)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

SetTextAppearance(Context, Int32)

指定した TextAppearance リソースのテキストの色、サイズ、スタイル、ヒントの色、強調表示の色を設定します。

[Android.Runtime.Register("setTextAppearance", "(Landroid/content/Context;I)V", "GetSetTextAppearance_Landroid_content_Context_IHandler")]
public virtual void SetTextAppearance (Android.Content.Context? context, int resId);
[<Android.Runtime.Register("setTextAppearance", "(Landroid/content/Context;I)V", "GetSetTextAppearance_Landroid_content_Context_IHandler")>]
abstract member SetTextAppearance : Android.Content.Context * int -> unit
override this.SetTextAppearance : Android.Content.Context * int -> unit

パラメーター

context
Context
resId
Int32

適用するスタイルのリソース識別子

属性

注釈

指定した TextAppearance リソースのテキストの色、サイズ、スタイル、ヒントの色、強調表示の色を設定します。

このメンバーは非推奨とされます。 代わりに、#setTextAppearance(int) を使用してください。

の Java ドキュメント android.widget.TextView.setTextAppearance(android.content.Context, int)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象