List of usage examples for android.app ListActivity getListView
public ListView getListView()
From source file:org.solovyev.android.list.ListItemAdapter.java
public static <LI extends ListItem> void attach(@Nonnull ListActivity listActivity, @Nonnull ListItemAdapter<? extends LI> adapter) { listActivity.setListAdapter(adapter); fillListView(listActivity.getListView(), adapter, listActivity); }
From source file:com.andrewshu.android.reddit.common.Common.java
/** * Set the Drawable for the list selector etc. based on the current theme. *///from w w w . j a va 2s . com public static void updateListDrawables(ListActivity la, int theme) { ListView lv = la.getListView(); if (Util.isLightTheme(theme)) { lv.setBackgroundResource(android.R.color.background_light); lv.setSelector(R.drawable.list_selector_blue); } else /* if (Common.isDarkTheme(theme)) */ { lv.setSelector(android.R.drawable.list_selector_background); } }
From source file:in.shick.diode.common.Common.java
/** * Set the Drawable for the list selector etc. based on the current theme. *///from ww w . ja v a 2s . c o m public static void updateListDrawables(ListActivity la, int theme) { ListView lv = la.getListView(); if (Util.isLightTheme(theme)) { lv.setBackgroundResource(android.R.color.background_light); lv.setSelector(R.drawable.list_selector_blue); } else { /* if (Common.isDarkTheme(theme)) */ lv.setSelector(android.R.drawable.list_selector_background); } }