android-edittext

How to apply shapeAppreanace in EditText and TextView using Material Design in Android

二次信任 提交于 2020-11-29 08:46:04
问题 I want to design a TextView and EditText with round corner. There is one straight forward solution for this. Using custom shape background. But since material design 1.1.0 introduces shapeAppearance theme attribute to apply a different shape to the corner which works fine for all Material components like MaterialButton , BottomSheet , MaterialCardView , etc. But it does not work for EditText and TextView . I tried using MaterialTextView as well but it did not work. This how I am setting up