ListView的SimpleAdapter

SimpleAdapter adapter = new SimpleAdapter{

this, // parent container

list, // data source

R.layout.item, // line layout

new String [] { "logo", "title", "version", "size"}, // Data Source List <Map> in, Map key

new int [] {R.id.logo, R.id.title, R.id.version, R.id.size} // layout of rows, id each control

}

 

Bug Treatment: When the button appears ListView layout, there will be a button to click things snatch the line, resulting in no response after clicking OK. In this case you need to set descendantFocusability = "blockDescendants", so that the row can receive focus

Guess you like

Origin www.cnblogs.com/xxie12/p/11484268.html