Various items in a ListView row - screenshot example
i want to achieve this kinda of row look in my app.
I already have a ImageView/TextView layout, but i want that 'positive' little image in the right always being开发者_JAVA技巧 displayed at the exact same place!
http://cache.ctoof.com/2010/03/gowalla-1.png
Thanks!
Probably by using gravity will do the job
android:layout_gravity="center_vertical|right"
See this sample taken from one of my views
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/LinearLayout01"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dip"
android:layout_weight="1"
android:paddingRight="8dip"
android:layout_height="wrap_content"
android:id="@+id/LinearLayout01"
android:orientation="vertical">
....
</LinearLayout>
<ImageView
android:id="@+id/imgArrowRight"
android:src="@drawable/tab_right_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dip"
android:layout_gravity="center_vertical|right"></ImageView>
</LinearLayout>
精彩评论