Lenguaje

RemoteViews.SetColorInt(Int32, String, Int32, Int32) Método

Definición

Llame a un método que toma un valor int, un color, en una vista en el diseño de este RemoteViews.

[Android.Runtime.Register("setColorInt", "(ILjava/lang/String;II)V", "GetSetColorInt_ILjava_lang_String_IIHandler", ApiSince=31)]
public virtual void SetColorInt(int viewId, string methodName, int notNight, int night);
[<Android.Runtime.Register("setColorInt", "(ILjava/lang/String;II)V", "GetSetColorInt_ILjava_lang_String_IIHandler", ApiSince=31)>]
abstract member SetColorInt : int * string * int * int -> unit
override this.SetColorInt : int * string * int * int -> unit

Parámetros

viewId
Int32

Identificador de la vista en la que se va a llamar al método .

methodName
String

Nombre del método al que se va a llamar.

notNight
Int32

Valor que se va a pasar al método cuando la configuración de la vista está establecida en Configuration#UI_MODE_NIGHT_NO

night
Int32

Valor que se va a pasar al método cuando la configuración de la vista está establecida en Configuration#UI_MODE_NIGHT_YES

Atributos

Comentarios

Java documentación para android.widget.RemoteViews.setColorInt(int, java.lang.String, int, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a