mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Add default style attrs for design components
BUG: 27285523 Change-Id: Id19144f3fe58fe61ea132c2ca4fbf2cda5595277 GitOrigin-RevId=7e268c7de8bb10fc24ddda5d237d5cc5ce3b591b PiperOrigin-RevId: 140560001
This commit is contained in:
parent
0e1d9c47de
commit
298b9aee0f
@ -26,7 +26,9 @@
|
||||
<public type="attr" name="bottomSheetStyle"/>
|
||||
<public type="attr" name="collapsedTitleGravity"/>
|
||||
<public type="attr" name="collapsedTitleTextAppearance"/>
|
||||
<public type="attr" name="collapsingToolbarLayoutStyle"/>
|
||||
<public type="attr" name="contentScrim"/>
|
||||
<public type="attr" name="coordinatorLayoutStyle"/>
|
||||
<public type="attr" name="counterEnabled"/>
|
||||
<public type="attr" name="counterMaxLength"/>
|
||||
<public type="attr" name="counterOverflowTextAppearance"/>
|
||||
@ -43,6 +45,7 @@
|
||||
<public type="attr" name="expandedTitleMarginTop"/>
|
||||
<public type="attr" name="expandedTitleTextAppearance"/>
|
||||
<public type="attr" name="fabSize"/>
|
||||
<public type="attr" name="floatingActionButtonStyle"/>
|
||||
<public type="attr" name="headerLayout"/>
|
||||
<public type="attr" name="hintAnimationEnabled"/>
|
||||
<public type="attr" name="hintEnabled"/>
|
||||
@ -61,6 +64,7 @@
|
||||
<public type="attr" name="layout_scrollFlags"/>
|
||||
<public type="attr" name="layout_scrollInterpolator"/>
|
||||
<public type="attr" name="menu"/>
|
||||
<public type="attr" name="navigationViewStyle"/>
|
||||
<public type="attr" name="pressedTranslationZ"/>
|
||||
<public type="attr" name="rippleColor"/>
|
||||
<public type="attr" name="statusBarBackground"/>
|
||||
@ -70,6 +74,7 @@
|
||||
<public type="attr" name="tabGravity"/>
|
||||
<public type="attr" name="tabIndicatorColor"/>
|
||||
<public type="attr" name="tabIndicatorHeight"/>
|
||||
<public type="attr" name="tabLayoutStyle"/>
|
||||
<public type="attr" name="tabMaxWidth"/>
|
||||
<public type="attr" name="tabMinWidth"/>
|
||||
<public type="attr" name="tabMode"/>
|
||||
@ -82,6 +87,7 @@
|
||||
<public type="attr" name="tabTextAppearance"/>
|
||||
<public type="attr" name="tabTextColor"/>
|
||||
<public type="attr" name="textColorError"/>
|
||||
<public type="attr" name="textInputLayoutStyle"/>
|
||||
<public type="attr" name="title"/>
|
||||
<public type="attr" name="titleEnabled"/>
|
||||
<public type="attr" name="toolbarId"/>
|
||||
|
||||
@ -365,6 +365,18 @@
|
||||
<attr name="bottomSheetDialogTheme" format="reference" />
|
||||
<!-- Style to use for modal bottom sheets in this theme. -->
|
||||
<attr name="bottomSheetStyle" format="reference" />
|
||||
<!-- Default style to use for CoordinatorLayouts in this theme. -->
|
||||
<attr name="coordinatorLayoutStyle" format="reference"/>
|
||||
<!-- Default style to use for CollapsingToolbarLayouts in this theme. -->
|
||||
<attr name="collapsingToolbarLayoutStyle" format="reference"/>
|
||||
<!-- Default style to use for FloatingActionButtons in this theme. -->
|
||||
<attr name="floatingActionButtonStyle" format="reference"/>
|
||||
<!-- Default style to use for NavigationViews in this theme. -->
|
||||
<attr name="navigationViewStyle" format="reference"/>
|
||||
<!-- Default style to use for TabLayouts in this theme. -->
|
||||
<attr name="tabLayoutStyle" format="reference"/>
|
||||
<!-- Default style to use for TextInputLayouts in this theme. -->
|
||||
<attr name="textInputLayoutStyle" format="reference"/>
|
||||
|
||||
<!-- Text color used to indicate an error has occurred. -->
|
||||
<attr name="textColorError" format="color" />
|
||||
|
||||
@ -129,7 +129,7 @@ public class CollapsingToolbarLayout extends FrameLayout {
|
||||
}
|
||||
|
||||
public CollapsingToolbarLayout(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
this(context, attrs, R.attr.collapsingToolbarLayoutStyle);
|
||||
}
|
||||
|
||||
public CollapsingToolbarLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
|
||||
@ -173,7 +173,7 @@ public class CoordinatorLayout extends ViewGroup implements NestedScrollingParen
|
||||
}
|
||||
|
||||
public CoordinatorLayout(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
this(context, attrs, R.attr.coordinatorLayoutStyle);
|
||||
}
|
||||
|
||||
public CoordinatorLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
|
||||
@ -104,7 +104,7 @@ public class FloatingActionButton extends VisibilityAwareImageButton {
|
||||
}
|
||||
|
||||
public FloatingActionButton(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
this(context, attrs, R.attr.floatingActionButtonStyle);
|
||||
}
|
||||
|
||||
public FloatingActionButton(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
|
||||
@ -92,7 +92,7 @@ public class NavigationView extends ScrimInsetsFrameLayout {
|
||||
}
|
||||
|
||||
public NavigationView(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
this(context, attrs, R.attr.navigationViewStyle);
|
||||
}
|
||||
|
||||
public NavigationView(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
|
||||
@ -258,7 +258,7 @@ public class TabLayout extends HorizontalScrollView {
|
||||
}
|
||||
|
||||
public TabLayout(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
this(context, attrs, R.attr.tabLayoutStyle);
|
||||
}
|
||||
|
||||
public TabLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
|
||||
@ -124,7 +124,7 @@ public class TextInputLayout extends LinearLayout {
|
||||
}
|
||||
|
||||
public TextInputLayout(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
this(context, attrs, R.attr.textInputLayoutStyle);
|
||||
}
|
||||
|
||||
public TextInputLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user