Skip to content

Commit

Permalink
[TextInputLayout] Updated shape to use M3 attrs/styles.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 444647020
  • Loading branch information
leticiarossi authored and dsn5ft committed Apr 27, 2022
1 parent 75af80c commit 0e4e44e
Showing 1 changed file with 4 additions and 7 deletions.
Expand Up @@ -354,7 +354,8 @@
<item name="placeholderTextAppearance">?attr/textAppearanceBodyLarge</item>
<item name="prefixTextAppearance">?attr/textAppearanceTitleMedium</item>
<item name="suffixTextAppearance">?attr/textAppearanceTitleMedium</item>
<item name="shapeAppearanceOverlay">?attr/shapeAppearanceSmallComponent</item>
<item name="shapeAppearance">?attr/shapeAppearanceCornerExtraSmall</item>
<item name="shapeAppearanceOverlay">@null</item>
</style>

<!-- Style for a dense M3 Outlined text field. -->
Expand Down Expand Up @@ -402,7 +403,8 @@
<item name="placeholderTextAppearance">?attr/textAppearanceBodyLarge</item>
<item name="prefixTextAppearance">?attr/textAppearanceTitleMedium</item>
<item name="suffixTextAppearance">?attr/textAppearanceTitleMedium</item>
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Material3.TextField.Filled</item>
<item name="shapeAppearance">?attr/shapeAppearanceCornerExtraSmall</item>
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Material3.Corner.Top</item>
</style>

<style name="Widget.Material3.TextInputLayout.FilledBox.Dense">
Expand Down Expand Up @@ -517,9 +519,4 @@
<style name="ThemeOverlay.Material3.AutoCompleteTextView.OutlinedBox.Dense">
<item name="autoCompleteTextViewStyle">@style/Widget.Material3.AutoCompleteTextView.OutlinedBox.Dense</item>
</style>

<style name="ShapeAppearanceOverlay.Material3.TextField.Filled" parent="ShapeAppearance.Material3.SmallComponent">
<item name="cornerSizeBottomLeft">0dp</item>
<item name="cornerSizeBottomRight">0dp</item>
</style>
</resources>

0 comments on commit 0e4e44e

Please sign in to comment.