List of usage examples for android.widget ListView setTextFilterEnabled
public void setTextFilterEnabled(boolean textFilterEnabled)
From source file:fm.krui.kruifm.FavoriteTrackFragment.java
@Override public void onResume() { super.onResume(); // Load FavoriteTrackAdapter with track information. adapter = new FavoriteTrackAdapter(favoriteList, favTrackManager, getActivity()); // Bind adapter to this list to display its data. setListAdapter(adapter);// w ww.ja va2 s . com final ListView lv = getListView(); lv.setTextFilterEnabled(true); }
From source file:com.pindroid.fragment.MainSearchResultsFragment.java
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); getActivity().setTitle(R.string.main_search_results_title); String[] MENU_ITEMS = new String[] { getString(R.string.search_results_bookmark), getString(R.string.search_results_tag), getString(R.string.search_results_note), getString(R.string.search_results_global_tag) }; setListAdapter(new ArrayAdapter<String>(getActivity(), R.layout.result_view, MENU_ITEMS)); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if (position == 0) { searchActionListener.onBookmarkSearch(query); } else if (position == 1) { searchActionListener.onTagSearch(query); } else if (position == 2) { searchActionListener.onNoteSearch(query); } else if (position == 3) { searchActionListener.onGlobalTagSearch(query); }//from w ww . jav a 2 s. co m } }); }
From source file:fm.krui.kruifm.PlaylistFragment.java
@Override public void onPlaylistFinish(ArrayList<HashMap<String, Track>> returnedTracks) { // Load PlaylistAdapter with track information returned adapter = new PlaylistAdapter(returnedTracks, getActivity()); // Bind ScheduleAdapter to this list to display its data. setListAdapter(adapter);//from w w w.j a v a2 s. co m showLoadingScreen(false); final ListView lv = getListView(); lv.setTextFilterEnabled(true); }
From source file:fm.krui.kruifm.WordpressViewer.java
@Override public void onArticlesDownloaded(ArrayList<Article> downloadedList) { // Kill loading screen showLoadingScreen(false);/* w w w. jav a2 s .c o m*/ WordpressAdapter adapter = new WordpressAdapter(getActivity(), downloadedList); // Bind adapter to this list to display its data. setListAdapter(adapter); final ListView lv = getListView(); lv.setTextFilterEnabled(true); }
From source file:com.pindroid.fragment.MainFragment.java
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); setHasOptionsMenu(true);/*from w w w. ja v a2s . co m*/ String[] MENU_ITEMS = new String[] { getString(R.string.main_menu_my_bookmarks), getString(R.string.main_menu_my_unread_bookmarks), getString(R.string.main_menu_my_tags), getString(R.string.main_menu_my_notes), getString(R.string.main_menu_recent_bookmarks), getString(R.string.main_menu_popular_bookmarks), getString(R.string.main_menu_network_bookmarks) }; setListAdapter(new ArrayAdapter<String>(getActivity(), R.layout.main_view, MENU_ITEMS)); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if (position == 0) { mainActionListener.onMyBookmarksSelected(); } else if (position == 1) { mainActionListener.onMyUnreadSelected(); } else if (position == 2) { mainActionListener.onMyTagsSelected(); } else if (position == 3) { mainActionListener.onMyNotesSelected(); } else if (position == 4) { mainActionListener.onRecentSelected(); } else if (position == 5) { mainActionListener.onPopularSelected(); } else if (position == 6) { mainActionListener.onMyNetworkSelected(); } } }); }
From source file:com.deliciousdroid.fragment.MainFragment.java
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); base = (FragmentBaseActivity) getActivity(); setHasOptionsMenu(true);/*from www. jav a2 s . c o m*/ String[] MENU_ITEMS = new String[] { getString(R.string.main_menu_my_bookmarks), getString(R.string.main_menu_my_tags), getString(R.string.main_menu_my_bundles), getString(R.string.main_menu_recent_bookmarks), getString(R.string.main_menu_network_bookmarks) }; setListAdapter(new ArrayAdapter<String>(base, R.layout.main_view, MENU_ITEMS)); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if (position == 0) { mainActionListener.onMyBookmarksSelected(); } else if (position == 1) { mainActionListener.onMyTagsSelected(); } else if (position == 2) { mainActionListener.onMyBundlesSelected(); } else if (position == 3) { mainActionListener.onRecentSelected(); } else if (position == 4) { mainActionListener.onMyNetworkSelected(); } } }); }
From source file:com.pindroid.fragment.BrowseTagsFragment.java
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); mAdapter = new SimpleCursorAdapter(this.getActivity(), R.layout.tag_view, null, new String[] { Tag.Name, Tag.Count }, new int[] { R.id.tag_name, R.id.tag_count }, 0); setListAdapter(mAdapter);// w w w . j av a 2 s.c om getLoaderManager().initLoader(0, null, this); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setFastScrollEnabled(true); lv.setOnItemClickListener(clickListener); lv.setItemsCanFocus(false); lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE); }
From source file:com.pindroid.fragment.BrowseNotesFragment.java
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); setHasOptionsMenu(true);//from w w w .j av a 2 s . co m mAdapter = new SimpleCursorAdapter(this.getActivity(), R.layout.note_view, null, new String[] { Note.Title }, new int[] { R.id.note_title }, 0); setListAdapter(mAdapter); getLoaderManager().initLoader(0, null, this); final ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setFastScrollEnabled(true); lv.setItemsCanFocus(false); lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { final Cursor c = (Cursor) lv.getItemAtPosition(position); Note n = NoteManager.CursorToNote(c); viewNote(n); } }); getActivity().setTitle(getString(R.string.browse_my_notes_title)); }
From source file:com.deliciousdroid.fragment.BrowseBundlesFragment.java
@Override public void onActivityCreated(android.os.Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); setHasOptionsMenu(true);//from w w w. j a v a 2s . c om mAdapter = new SimpleCursorAdapter(this.getActivity(), R.layout.bundle_view, null, new String[] { Bundle.Name, Bundle.Tags }, new int[] { R.id.bundle_name, R.id.bundle_tags }, 0); setListAdapter(mAdapter); getLoaderManager().initLoader(0, null, this); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setFastScrollEnabled(true); lv.setOnItemClickListener(clickListener); lv.setItemsCanFocus(false); lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE); }
From source file:com.deliciousdroid.fragment.BrowseTagsFragment.java
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); setHasOptionsMenu(true);//from w ww . j a va 2s.c om mAdapter = new SimpleCursorAdapter(this.getActivity(), R.layout.tag_view, null, new String[] { Tag.Name, Tag.Count }, new int[] { R.id.tag_name, R.id.tag_count }, 0); setListAdapter(mAdapter); getLoaderManager().initLoader(0, null, this); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setFastScrollEnabled(true); lv.setOnItemClickListener(clickListener); lv.setItemsCanFocus(false); lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE); }