次の方法で共有


Icon.SetTintList(ColorStateList) メソッド

定義

このアイコンが描画されるたびに使用する色を保存します。

[Android.Runtime.Register("setTintList", "(Landroid/content/res/ColorStateList;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public Android.Graphics.Drawables.Icon SetTintList (Android.Content.Res.ColorStateList? tintList);
[<Android.Runtime.Register("setTintList", "(Landroid/content/res/ColorStateList;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
member this.SetTintList : Android.Content.Res.ColorStateList -> Android.Graphics.Drawables.Icon

パラメーター

tintList
ColorStateList

Drawable#setTintList(ColorStateList)次のように、濃淡を削除するには null

戻り値

チェーン構造で使用するために、この同じオブジェクト

属性

注釈

このアイコンが描画されるたびに使用する色を保存します。

の Java ドキュメントandroid.graphics.drawable.Icon.setTintList(android.content.res.ColorStateList)

このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。

適用対象