Skip to content

Commit 0e4e44e

Browse files
leticiarossidsn5ft
authored andcommitted
[TextInputLayout] Updated shape to use M3 attrs/styles.
PiperOrigin-RevId: 444647020
1 parent 75af80c commit 0e4e44e

File tree

1 file changed

+4
-7
lines changed
  • lib/java/com/google/android/material/textfield/res/values

1 file changed

+4
-7
lines changed

lib/java/com/google/android/material/textfield/res/values/styles.xml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@
354354
<item name="placeholderTextAppearance">?attr/textAppearanceBodyLarge</item>
355355
<item name="prefixTextAppearance">?attr/textAppearanceTitleMedium</item>
356356
<item name="suffixTextAppearance">?attr/textAppearanceTitleMedium</item>
357-
<item name="shapeAppearanceOverlay">?attr/shapeAppearanceSmallComponent</item>
357+
<item name="shapeAppearance">?attr/shapeAppearanceCornerExtraSmall</item>
358+
<item name="shapeAppearanceOverlay">@null</item>
358359
</style>
359360

360361
<!-- Style for a dense M3 Outlined text field. -->
@@ -402,7 +403,8 @@
402403
<item name="placeholderTextAppearance">?attr/textAppearanceBodyLarge</item>
403404
<item name="prefixTextAppearance">?attr/textAppearanceTitleMedium</item>
404405
<item name="suffixTextAppearance">?attr/textAppearanceTitleMedium</item>
405-
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Material3.TextField.Filled</item>
406+
<item name="shapeAppearance">?attr/shapeAppearanceCornerExtraSmall</item>
407+
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Material3.Corner.Top</item>
406408
</style>
407409

408410
<style name="Widget.Material3.TextInputLayout.FilledBox.Dense">
@@ -517,9 +519,4 @@
517519
<style name="ThemeOverlay.Material3.AutoCompleteTextView.OutlinedBox.Dense">
518520
<item name="autoCompleteTextViewStyle">@style/Widget.Material3.AutoCompleteTextView.OutlinedBox.Dense</item>
519521
</style>
520-
521-
<style name="ShapeAppearanceOverlay.Material3.TextField.Filled" parent="ShapeAppearance.Material3.SmallComponent">
522-
<item name="cornerSizeBottomLeft">0dp</item>
523-
<item name="cornerSizeBottomRight">0dp</item>
524-
</style>
525522
</resources>

0 commit comments

Comments
 (0)