나는 이런 식으로하고 싶습니다.중앙 집중식 항목 가로형 ListView
가 나는 수평 목록보기가 있습니다.
<com.sample.HorizontalListView
android:id="@+id/hlist_collection_items"
android:layout_width="match_parent"
android:layout_height="@dimen/horizontal_list_collection_image_height"
android:background="#44aaaaaa"
android:divider="#44aaaaaa"
android:layout_gravity="bottom"
android:fadingEdgeLength="5dp"
custom:dividerWidth="2dp" />
더 많은 것을해야합니까? 그것을 위해 중앙 집중식 항목. ?? 내 ListItem XML이 아래에 있습니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center" >
<ImageView
android:id="@+id/product_image_view_1"
android:layout_width="@dimen/horizontal_list_collection_item_image_height"
android:layout_height="@dimen/horizontal_list_collection_item_image_height"
android:layout_centerInParent="true"
android:gravity="center"
android:src="@drawable/loading_image"
android:scaleType="fitCenter" />
</LinearLayout>
나는 그것을 중앙 항목을 확인해야합니다. 왼쪽 정렬 아이템. –
http://www.dev-smart.com/archives/34 도움이 될 수도 있습니다. –