私はlinearLayout(水平)内に3つのTextViewを持ち、最後のテキストビューが大きすぎるか、スペースがない場合、それは親と一致し、下の画像のようです:私が欲しいものAndroid - 移動しない場合はtextView
はTextViewにはのLinearLayoutの幅に達した場合、その後、TextViewには、「プロパティ」のTextViewの下に移動させなければならないことです。 (次の行)
はそれがどうあるべきかを見てみましょう:私のXMLの抜粋です
:事前xの
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="5dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearance"
android:text="Property"
android:id="@+id/txtPropertyType" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearance"
android:text="/ 127 m"
android:id="@+id/txtArea"
android:layout_marginLeft="10dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearance"
android:text="/ 3 roomsssssssssdddd"
android:singleLine="false"
android:id="@+id/txtNumRoom"
android:layout_marginLeft="5dp" />
</LinearLayout>
おかげで)
それは働いた!私はadapter.notifyDataSetChanged()をする必要があった。私のリストビューでは、それは働いた:Dありがとう! –