Was bedeutet dieses Android Lint Bedeutet: "die Falsche Orientierung?"

Ich bin mit Android lint in eclipse und bekomme eine Fehlermeldung:

Falsche Orientierung? Keine Orientierung angegeben und der Standard ist
horizontale, noch dieses layout hat mehrere Kinder, von denen mindestens eines
hat layout_width="match_parent"

Problem: Prüft, ob LinearLayouts mit mehreren Kindern einstellen
Orientierung-Id: Orientierung

- Und das ist der Fehlercode:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="@dimen/cell_height_1_of_3" >

    <ImageView
        android:id="@+id/item_cover"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_gravity="left"
        android:layout_marginLeft="8dp"
        android:scaleType="fitCenter"
        android:src="@drawable/doc_item_icon" />

    <ImageView
        android:layout_width="fill_parent"
        android:layout_height="@dimen/cell_height_1_of_3"
        android:background="#0000"
        android:padding="5dp"
        android:scaleType="centerInside"
        android:visibility="gone" />

    <TextView
        android:id="@+id/item_title"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:ellipsize="end"
        android:gravity="center"
        android:maxLines="1"
        android:text="Add new"
        android:textColor="@color/office_color"
        android:textSize="@dimen/textview_small_size" />

</LinearLayout>

Was bedeutet es? Was wird passieren, wenn ich ignorierte diese lint-Fehler?

  • Als layout testen?
InformationsquelleAutor herbertD | 2013-03-30
Schreibe einen Kommentar