3
Ich möchte Suffix zu TextInputLayout hinzufügen. Ein Beispiel aus dem material.io genommen wirdTextInputLayout-Suffix/Präfix
Gibt es Standardlösungen?
Ich möchte Suffix zu TextInputLayout hinzufügen. Ein Beispiel aus dem material.io genommen wirdTextInputLayout-Suffix/Präfix
Gibt es Standardlösungen?
Es gibt keine Standardlösungen, ich habe es mit textView direkt auf textInputLayout und editText padding gemacht.
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:gravity="bottom">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Hint"
app:errorEnabled="true">
<android.support.v7.widget.AppCompatEditText
style="@style/RegistrationEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingRight="80dp" />
</android.support.design.widget.TextInputLayout>
<android.support.v7.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:paddingBottom="12dp"
android:paddingRight="8dp"
android:text="rightLabel" />
</RelativeLayout>
Wird [this] (http://stackoverflow.com/a/37278154/1083957) nicht hilfreich für Sie sein? – azizbekian