我上的Android项目的工作中,我需要设计一个用户界面如下图所示图像 -斯普利特的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>
,我需要作出这样的列表滚动。
任何人都可以帮我解决这个问题吗?谢谢您的帮助。
您是否尝试过使用tableview – DjHacktorReborn 2013-03-08 06:49:59
或可能是'RelativeLayout'? – SudoRahul 2013-03-08 06:50:22
还没有。你们能为我提供一个例子吗? – AKIWEB 2013-03-08 06:51:15