在我的布局中,我需要一个像盒子类型的自定义列表视图。Android自定义列表视图?
该怎么办?
我的XML:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="317dp"
android:gravity="top"
android:orientation="vertical"
android:background="@android:color/transparent"
>
<ListView android:id="@+id/slistview"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:divider="#2867EA"
android:dividerHeight="1dp"
android:cacheColorHint="#00000000"
>
</ListView>
</LinearLayout>
有一个自定义适配器膨胀的每一行的自定义布局和适配器设置为列表视图。 http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/ – Raghunandan
使用像这样的自定义适配器http://abhiandroidinfo.blogspot.in/2013/05/customised- listview-with-images.html – abhi
box type?你可以插入任何图片样本? – deadfish