List of usage examples for android.widget Adapter getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:com.hemou.android.ui.base._ItemListFragment.java
/** * Configure list after view has been created * /*from ww w . j a va 2 s. com*/ * @param activity * @param listView */ protected void configureList(Activity activity, ListView listView) { Log.d(TAG, "configureList() got called to set adapter to _HeaderFooterListAdapter..."); listView.setAdapter(createAdapter()); Adapter adapter = listView.getAdapter(); Log.d(TAG, "The adapter become " + adapter.getClass().getSimpleName() + " afater configureList"); if (adapter instanceof HeaderViewListAdapter) { Log.d(TAG, "The wrapped adapter is " + ((HeaderViewListAdapter) adapter).getWrappedAdapter().getClass().getSimpleName()); } }
From source file:com.hemou.android.ui.base.ItemListFragment.java
/** * Configure list after view has been created * //from w w w . j a v a 2s .c o m * @param activity * @param listView */ protected void configureList(Activity activity, ListView listView) { Log.d(TAG, "configureList() got called to set adapter to HeaderFooterListAdapter..."); listView.setAdapter(createAdapter()); Adapter adapter = listView.getAdapter(); Log.d(TAG, "The adapter become " + adapter.getClass().getSimpleName() + " afater configureList"); if (adapter instanceof HeaderViewListAdapter) { Log.d(TAG, "The wrapped adapter is " + ((HeaderViewListAdapter) adapter).getWrappedAdapter().getClass().getSimpleName()); } }