Android verschmiert Layout
Ich habe so etwas noch nie gesehen. Mein Layout ist auf meinem Gerät (Infinix Zero X506 mit Android 4.4.2) nur verschmiert. Auf einem Emulator wird es jedoch einwandfrei angezeigt. Ich habe hier oder bei Google keine ähnliche Frage gesehen. Ich verwende Android Studio 2.2 Vorschau 1 Unten ist ein Bild
Below ist mein Layout xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/activity_horizontal_margin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:text="@string/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:textStyle="bold"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textCapSentences"
android:hint="@string/enter_title"
android:ems="10"
android:maxLines="2"
android:id="@+id/edName" />
<TextView
android:text="@string/to_do_details"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView2"
android:textStyle="bold"
android:layout_marginTop="10dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine|textCapSentences"
android:ems="10"
android:hint="@string/enter_to_do_details"
android:id="@+id/edDetails" />
<TextView
android:text="@string/select_priority"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView3"
android:textStyle="bold"
android:layout_marginTop="10dp"/>
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/spPriority"
/>
<TextView
android:text="@string/set_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView6"
android:textStyle="bold"
android:layout_marginTop="10dp"/>
<Button
android:background="@color/colorAccent"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:id="@+id/btDate"
/>
<TextView
android:text="@string/set_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView4"
android:textStyle="bold"
android:layout_marginTop="10dp"/>
<Button
android:background="@color/colorAccent"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:id="@+id/btTime"
/>
<Button
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/button"
android:text="@string/save"
android:gravity="center"
android:layout_gravity="center"/>
</LinearLayout>
</ScrollView>
Die Einträge im Drehfeld werden von einem benutzerdefinierten Adapter gespeist, wenn dies @ hilf