2012-07-13 47 views

回答

0

請仔細閱讀http://developer.android.com/reference/android/view/View.html

ListView listView = getListView(); 

//set background to color 
listView.setBackgroundColor(#FF888888); 

//set background to Drawable 
listView.setBackgroundDrawable(myDrawable); 

//set background to Resource 
listView.setBackgroundResouce(R.id.my_res_id); 
相關問題