Java Code Examples for android.support.v4.app.ListFragment

The following code examples are extracted from open source projects. You can click to vote up the examples that are useful to you.

Example 1

From project android_packages_apps_Superuser, under directory /src/com/noshufou/android/su/.

Source file: LogFragment.java

  22 
vote

@Override public void onActivityCreated(Bundle savedInstanceState){
  super.onActivityCreated(savedInstanceState);
  Log.d(TAG,"onActivityCreated()");
  if (mDualPane) {
    Log.d(TAG,"is dual pane");
    ListFragment appList=(ListFragment)getActivity().getSupportFragmentManager().findFragmentById(R.id.app_list);
    appList.getListView().clearChoices();
    appList.getListView().invalidateViews();
  }
  setupListView();
  getLoaderManager().initLoader(0,null,this);
}