So ändern Sie die Größe des EditText-Hinweises in TextInputLayout
Ich versuche, die Hinweisgröße in @ zu ändeTextInputLayout
, aber es funktioniert nicht wie gewünscht. Das möchte ich erreichen:
styles.xml
<style name="TextLabel" parent="TextAppearance.Design.Hint">
<item name="android:textSize">44sp</item>
</style>
fragment.xml
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hintTextAppearance="@style/TextLabel"
android:hint="Password">
<android.support.design.widget.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"/>
</android.support.design.widget.TextInputLayout>
Dieser Code funktioniert nur für das Floating-Label, wenn dasEditText
ist nicht leer, aber ich möchte die Hinweisgröße im @ ändeEditText
selbst, wenn es leer ist.