RemoteViews.SetTextColor(Int32, Color) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
相當於通話 android.widget.TextView#setTextColor(int)
。
[Android.Runtime.Register("setTextColor", "(II)V", "GetSetTextColor_IIHandler")]
public virtual void SetTextColor (int viewId, Android.Graphics.Color color);
[<Android.Runtime.Register("setTextColor", "(II)V", "GetSetTextColor_IIHandler")>]
abstract member SetTextColor : int * Android.Graphics.Color -> unit
override this.SetTextColor : int * Android.Graphics.Color -> unit
參數
- viewId
- Int32
文字色彩應該變更之檢視的標識碼
- color
- Color
將所有狀態的文字色彩(一般、選取、焦點)設定為此色彩。
- 屬性
備註
的 android.widget.RemoteViews.setTextColor(int, int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。