android Programming Glossary: emptyview
Browse Button required? http://stackoverflow.com/questions/5617388/browse-button-required if the list is empty LayoutInflater inflator LayoutInflater getSystemService Context.LAYOUT_INFLATER_SERVICE View emptyView inflator.inflate R.layout.file_picker_empty_view null ViewGroup getListView .getParent .addView emptyView getListView .setEmptyView.. View emptyView inflator.inflate R.layout.file_picker_empty_view null ViewGroup getListView .getParent .addView emptyView getListView .setEmptyView emptyView Set initial directory mDirectory new File DEFAULT_INITIAL_DIRECTORY Initialize the ArrayList.. R.layout.file_picker_empty_view null ViewGroup getListView .getParent .addView emptyView getListView .setEmptyView emptyView Set initial directory mDirectory new File DEFAULT_INITIAL_DIRECTORY Initialize the ArrayList mFiles new ArrayList File ..
ExpandableListFragment with LoaderManager for Compatibility Package http://stackoverflow.com/questions/6051050/expandablelistfragment-with-loadermanager-for-compatibility-package public void onCreateContextMenu ContextMenu menu View v ContextMenuInfo menuInfo public void onContentChanged View emptyView getView .findViewById android.R.id.empty mList ExpandableListView getView .findViewById android.R.id.list if mList null.. throw new RuntimeException Your content must have a ExpandableListView whose id attribute is 'android.R.id.list' if emptyView null mList.setEmptyView emptyView mList.setOnChildClickListener this mList.setOnGroupExpandListener this mList.setOnGroupCollapseListener.. must have a ExpandableListView whose id attribute is 'android.R.id.list' if emptyView null mList.setEmptyView emptyView mList.setOnChildClickListener this mList.setOnGroupExpandListener this mList.setOnGroupCollapseListener this if mFinishedStart..
|