画像に以下のようなレイアウトが欲しいです。 私は以下のコードを試しましたが、それは来ていません。 誰かがこのレイアウトを手伝ってくれますか?Androidレイアウトのデザイン:LinearLayoutと相対レイアウトの使用
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="6dip" >
<TextView
android:id="@+id/firstLine"
android:layout_width="fill_parent"
android:layout_height="26dip"
android:ellipsize="marquee"
android:singleLine="true"
android:text="Ali Connors"
android:textSize="12sp" />
<TextView
android:id="@+id/secondLine"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/firstLine"
android:gravity="center_vertical"
android:text="Brunch this weekend?"
android:textSize="16sp" />
<TextView
android:gravity="right"
android:id="@+id/rightTime"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="15m"
android:textSize="16sp" />
</RelativeLayout>
あなたはuは歓迎rの代わりにrafsanahmad007 @ –
感謝を2ネストされたレイアウトを使用しての相対的なレイアウトのピンクのビューが....それは – Nikhil
を働いていることを追加している可能性があり、それは場合に役立ちます...正しいと答えをマーク。 – rafsanahmad007