Я хочу набор фон для ListView, это фотографии показать цельКак установить фон в listview?
photo one : this is the xml file , show background ! но photo two see!! when run don't show background
это код в Java файл
public class a extends ListActivity {
String[] listItems = {"سهرهتای ئیمان ـ باوهڕ ـ وتنی: (لا اله الا الله)یه","فهرمانم پێكراوه بجهنگم لهگهڵ خهڵكیدا ههتا دهڵێن (لا اله الا الله)"};
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setListAdapter(new ArrayAdapter<String>(a.this,
android.R.layout.simple_list_item_1, listItems));
}
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);
if (position == 0) {
Intent intent = new Intent(this, a_a_activity.class);
startActivity(intent);
} else if (position == 1) {
Intent intent = new Intent(this, a_a_activity.class);
startActivity(intent);
}