AppCompatButton

(SESL modified) A Button which supports compatible features on older versions of the platform, including:

This will automatically be used when you use Button in your layouts and the top-level activity / dialog is provided by appcompat. You should only need to manually use this class when writing custom views.

Constructors

Link copied to clipboard
constructor(@NonNull context: @NonNull Context)
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet)
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, defStyleAttr: Int)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@RequiresApi(value = 26)
@Nullable
open fun getFontVariationSettings(): @Nullable String
Link copied to clipboard
This should be accessed via getBackgroundTintList
Link copied to clipboard
This should be accessed via getBackgroundTintMode
Link copied to clipboard
@Nullable
open fun getTypeface(): @Nullable Typeface
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun seslSetButtonShapeEnabled(enabled: Boolean, textColor: Int)
Link copied to clipboard
open fun setAllCaps(allCaps: Boolean)
open fun setAutoSizeTextTypeUniformWithConfiguration(autoSizeMinTextSize: Int, autoSizeMaxTextSize: Int, autoSizeStepGranularity: Int, unit: Int)
open fun setAutoSizeTextTypeUniformWithPresetSizes(presetSizes: @NonNull Array<Int>, unit: Int)
Link copied to clipboard
Link copied to clipboard
open fun setBackgroundDrawable(@Nullable background: @Nullable Drawable)
Link copied to clipboard
Link copied to clipboard
open fun setEmojiCompatEnabled(enabled: Boolean)
Configure emoji fallback behavior using EmojiCompat.
Link copied to clipboard
open fun setFilters(filters: @NonNull Array<InputFilter>)
Link copied to clipboard
@RequiresApi(value = 26)
open fun setFontVariationSettings(@Nullable fontVariationSettings: @Nullable String): Boolean
Link copied to clipboard
open fun setSupportAllCaps(allCaps: Boolean)
Sets the properties of this field to transform input to ALL CAPS display.
Link copied to clipboard
open fun setSupportBackgroundTintList(@Nullable tint: @Nullable ColorStateList)
This should be accessed via setBackgroundTintList
Link copied to clipboard
This should be accessed via setBackgroundTintMode
Link copied to clipboard
Link copied to clipboard
open fun setTextAppearance(context: Context, resId: Int)
Link copied to clipboard
open fun setTextSize(unit: Int, size: Float)
Link copied to clipboard
open fun setTypeface(@Nullable tf: @Nullable Typeface)