Android ListView
Does anyone know how to do a listview which looks like this? I'm interesting in the style of r开发者_如何转开发ows with an own background and the selector working fine.
It is really rather unclear what you are looking for.
In each main row, the text are TextViews
, the image is an ImageView
, and they are positioned probably via a RelativeLayout
.
The header rows are a TextView
.
The rows are intermingled via some sort of adapter, like for any ListView
. You could use my SackOfViewsAdapter
or MergeAdapter
for that, or you could create your own subclass of BaseAdapter
. The adapter will indicate which rows are enabled and which are not, to determine which can be clicked or selected.
In the future, please consider asking more concrete questions.
精彩评论