列表视图ListView
一、常用属性 android : layout_width = "match_parent" android : layout_height = "match_parent" android : orientation = "horizontal" > < ListView android : id = "@+id/lv_1" android : layout_width = "match_parent" android : layout_height = "wrap_content" android : listSelector = "@drawable/list_item" / > //这是列表选择器,在这可以通过drawab文件来修改列表的样式 下面是drawable/list_item的内容,当我点击列表是他是橙色的,否则就是白色 < selector xmlns : android = "http://schemas.android.com/apk/res/android" > < item android : state_selected = "true" android : drawable = "@color/colorOrange" / > < item android : state_pressed = "true" android : drawable = "