下の画像のようなユーザーインターフェイスを設計する必要があるAndroidプロジェクトに取り組んでいます-
上に としてテキストを表示する必要がありStudent App
、その下には のさまざまなオブジェクトがありStudent
ます。私が持っていると仮定すると、各学生10 Students
にあるとします。10 rows
各行の左側に画像があり、中央にテキストがあり、右側に別のthree text
.
私はいくつかの進歩を遂げ、以下のコードを持っています。しかし、それは私がイメージで探している方法とは正確ではありません。
<ImageView
android:id="@+id/icon"
android:src="@drawable/action_eating"
android:layout_width="60dp"
android:layout_height="60dp" />
<LinearLayout
android:orientation="vertical"
android:layout_gravity="center_vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp" >
<TextView
android:id="@+id/text1"
android:text="test"
android:textColor="#333"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp" />
<TextView
android:id="@+id/text2"
android:text="test2"
android:textColor="#6699CC"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp" />
</LinearLayout>
そして、そのリストをスクロール可能にする必要があります。
誰でもこれで私を助けることができますか? 助けてくれてありがとう。