If boxBackgroundColor is transparent then boxStroke is invisible
<style name="OutlinedRoundedBox" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox"> <item name="boxBackgroundColor">@android:color/transparent</item> <item name="boxStrokeColor">@android:color/white</item> <item name="boxStrokeWidth">4dp</item> </style> So is it only possible to have transparent TextInputLayout without outline using custom background?
E.g.:
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> <corners android:radius="5dp" /> <stroke android:width="2dp" android:color="@color/colorEditTextOutline" /> </shape> </item> </layer-list> 