Ich habe eine editText
direkt unter meiner Toolbar
. Aber wenn sich mein Gerät dreht, ändert sich der Titel der Toolbar (eingestellt durch XML) in den aktuellen Text von editText
.Symbolleistentitel ändert sich beim Drehen am Gerät in den Text in einem EditText?
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/newOccasion"
android:textColor="#FFFFFF"
android:textSize="18sp" />
</android.support.v7.widget.Toolbar>
<EditText
android:id="@+id/titleET"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:drawableStart="@drawable/ic_title"
android:hint="@string/titleET"
android:maxLines="1"
android:nextFocusLeft="@+id/titleET"
android:nextFocusUp="@+id/titleET"
android:paddingEnd="5dp"
android:paddingStart="5dp"
android:textSize="17sp"
android:theme="@style/inputColors"
android:lines="1"
android:maxLength="35"/>
FULL XML HIER:http://pastebin.com/JBeAkVqY
Ist das die komplette Layoutdatei? – Shaishav
Bitte teilen Sie Ihre Java-Code –
Ich habe nichts in meinem Java –