Ich versuche Textgröße des Hinweises in TextInputLayout
zu erhöhen, während EditText
im Fokus ist. Aber nicht in der Lage, herauszufinden, wie man das Gleiche macht.Erhöhen TextInputLayout fokussierte Textgröße
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/component_margin"
>
<EditText
android:id="@+id/firstName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_first_name"
android:maxLines="1"
android:textSize="@dimen/normal_text"
android:maxLength="25"
android:theme="@style/EditTextTheme"
/>
</android.support.design.widget.TextInputLayout>
dimens.xml
<dimen name="normal_text">14sp</dimen>
styles.xml
<style name="EditTextTheme">
<item name="colorControlNormal">@color/colorPrimary</item>
<item name="android:labelTextSize">@dimen/input_text_size</item>
</style>
I Größe von E-Mail für größere Bildschirmgeräte in Bild gezeigt erhöhen möchten.
Ebenso für Passwort
Versuchen Sie, diese in xml 'android: textAppearance = "@ style/Base.TextAppearance.AppCompat.Medium" ' – Nilabja
versucht, dies mit Medium, Large. Aber hatte keinen Effekt in der Ausgabe. – Stallion