added in version 25.1.0
belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1
belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1
Summary:
Inherited Constants
| Inherited Fields
| Ctors
| Methods
| Protected Methods
| Inherited Methods
| [Expand All]
AppCompatTextView
public
class
AppCompatTextView
extends TextView
implements
TintableBackgroundView
java.lang.Object | |||
↳ | android.view.View | ||
↳ | android.widget.TextView | ||
↳ | android.support.v7.widget.AppCompatTextView |
![]()
|
A TextView
which supports compatible features on older versions of the platform,
including:
- Allows dynamic tint of its background via the background tint methods in
ViewCompat
. - Allows setting of the background tint using
backgroundTint
andbackgroundTintMode
. - Supports auto-sizing via
TextViewCompat
by allowing to instruct aTextView
to let the size of the text expand or contract automatically to fill its layout based on the TextView's characteristics and boundaries. The style attributes associated with auto-sizing areautoSizeTextType
,autoSizeMinTextSize
,autoSizeMaxTextSize
,autoSizeStepGranularity
andautoSizePresetSizes
, all of which work back toIce Cream Sandwich
.
This will automatically be used when you use TextView
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.
Summary
Inherited fields | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
android.view.View
|