- Type 1
<com.google.android.material.textfield.TextInputLayout
style="@style/MyTextInputLayoutOutlinedBox.Spesial"
android:layout_margin="@dimen/def_margin"
android:layout_weight="1"
android:hint="Label"
android:paddingTop="0dp">
<com.google.android.material.textfield.TextInputEditText
style="@style/MyTextInputEditText.Spesial" />
</com.google.android.material.textfield.TextInputLayout>
- Type 2
<com.google.android.material.textfield.TextInputLayout
style="@style/MyTextInputLayoutOutlinedBox.Spesial.V2"
android:layout_margin="@dimen/def_margin"
android:layout_weight="1"
android:hint="Label"
app:endIconMode="clear_text">
<com.google.android.material.textfield.TextInputEditText
style="@style/MyTextInputEditText.Spesial.V2" />
</com.google.android.material.textfield.TextInputLayout>
- Type 3
<com.google.android.material.textfield.TextInputLayout
style="@style/MyTextInputLayoutOutlinedBox.Spesial.V3"
android:layout_margin="@dimen/def_margin"
android:layout_weight="1"
android:hint="Label"
app:endIconMode="clear_text">
<com.google.android.material.textfield.TextInputEditText
style="@style/MyTextInputEditText.Spesial.V3" />
</com.google.android.material.textfield.TextInputLayout>
- Custom Background Type 2
<com.google.android.material.textfield.TextInputLayout
style="@style/MyTextInputLayoutOutlinedBox.Spesial.V2"
android:layout_margin="@dimen/def_margin"
android:layout_weight="1"
android:hint="Label"
app:endIconMode="clear_text">
<com.google.android.material.textfield.TextInputEditText
style="@style/MyTextInputEditText.Spesial.V2"
android:background="@drawable/text_input_edittext_3d_custom"
android:text="GZeinNumer" />
</com.google.android.material.textfield.TextInputLayout>
text_input_edittext_3d_custom.xml
Step 1. Add this additional file and code
- res
Step 2. Or add this implementation to depedencies to skip Step 1
//maven { url 'https://jitpack.io' }
implementation 'com.github.gzeinnumer:SimpleMaterialStyle:version'
More simple with SimpleMaterialStyle
Copyright 2021 M. Fadli Zein