Ich habe eine EditText
. Wenn ich weniger als 8 Zeichen habe, hat die EditText
eine minimale Breite. Ich möchte wrap_content
verwenden.Android EditText Breite weil Tipp
Es wird verursacht, weil durch die hint
.
Wie kann ich das lösen? Ich habe alles versucht.
ich so will:
Hier meinen Code
<EditText
android:id="@+id/et_actionbar_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="YOLO"
android:hint="New team"
android:gravity="center"
android:textColor="@color/gray1"
android:textStyle="bold"
android:background="@color/gold"
android:layout_centerInParent="true"
android:minWidth="0dp"
android:minEms="0"
android:minHeight="0dp"
android:paddingLeft="0dp"
android:layout_marginLeft="0dp"
/>
Vielen Dank! Das hat mir gut getan! Ich kann deine Frage nicht beantworten. Ich brauche 2 Ruf. Wenn Sie meine Frage abstimmen, kann ich Ihre Antwort abstimmen :) – BertLeonaers