-
Notifications
You must be signed in to change notification settings - Fork 86
Supported View Types and Attributes
Nathanael Silverman edited this page Dec 16, 2019
·
3 revisions
The following view types and attributes are currently supported:
| ImageView | Description |
|---|---|
| android:scaleType | |
| android:src | |
| android:tint |
| TextView | Description |
|---|---|
| android:drawableBottom | |
| android:drawableLeft | |
| android:drawableRight | |
| android:drawablePadding | |
| android:drawableTop | |
| android:ellipsize | |
| android:fontFamily | |
| android:gravity | |
| android:hint | |
| android:inputType | |
| android:letterSpacing | |
| android:lines | |
| android:lineSpacingExtra | |
| android:lineSpacingMultiplier | |
| android:maxLines | |
| android:minLines | |
| android:maxWidth | |
| android:minWidth | |
| android:singleLine | |
| android:text | |
| android:textAllCaps | |
| android:textAppearance | |
| android:textColor | |
| android:textColorHint | |
| android:textSize | |
| android:textStyle |
| View | Description |
|---|---|
| android:alpha | |
| android:background | |
| android:backgroundTint | |
| android:backgroundTintMode | |
| android:contentDescription | |
| android:elevation | |
| android:foreground | |
| android:layout_width | |
| android:layout_height | |
| android:layout_gravity | |
| android:layout_margin | |
| android:layout_marginBottom | |
| android:layout_marginEnd | |
| android:layout_marginHorizontal | |
| android:layout_marginLeft | |
| android:layout_marginRight | |
| android:layout_marginStart | |
| android:layout_marginTop | |
| android:layout_marginVertical | |
| android:minHeight | |
| android:minWidth | |
| android:padding | |
| android:paddingBottom | |
| android:paddingEnd | |
| android:paddingHorizontal | |
| android:paddingLeft | |
| android:paddingRight | |
| android:paddingStart | |
| android:paddingTop | |
| android:paddingVertical | |
| android:stateListAnimator | |
| android:visibility | |
| ignoreLayoutWidthAndHeight | If true will ignore the android:layout_width and android:layout_height attributes of the same style |
| ViewGroup | Description |
|---|---|
| android:animateLayoutChanges | |
| android:clipChildren | |
| android:clipToPadding |
Unsupported attributes are ignored when applying styles. With that said, adding support for new Android attributes is easy and is a great way to start contributing to Paris!
To support custom views attributes see Custom Views.
To support third-party view types see View Proxies.