/** In der ActionBar die SearchView initialisieren */
 @Override
 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
   inflater.inflate(R.menu.fragment_wplist, menu);
   SearchManager searchManager =
       (SearchManager) getActivity().getSystemService(Context.SEARCH_SERVICE);
   SearchView searchView =
       (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.menu_List_search));
   searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));
   searchView.setOnQueryTextListener(this);
   super.onCreateOptionsMenu(menu, inflater);
 }
 @Override
 protected void setInternalArguments(Bundle args) {
   super.setInternalArguments(args);
   args.putParcelable(DBDEFINITION, tbd);
   args.putInt(LAYOUT, layout);
   args.putInt(VIEWHOLDERLAYOUT, listLayout);
   args.putIntArray(VIEWRESIDS, viewResId);
   args.putIntArray(FROMRESIDS, fromResId);
   args.putString(SELECTION, selection);
   args.putStringArray(SELECTIONARGS, selectionArgs);
 }
Exemple #3
0
 @Override
 protected void setInternalArguments(Bundle args) {
   super.setInternalArguments(args);
   args.putString(SELECTION, selection);
   args.putIntArray(VIEWRESIDS, viewResIDs);
   args.putStringArray(PROJECTION, projection);
   args.putString(GROUPBY, groupBy);
   args.putString(ORDERBY, orderBy);
   args.putInt(LAYOUT, layout);
   args.putInt(VIEWHOLDERLAYOUT, viewHolderLayout);
   args.putParcelable(DBDEFINITION, tbd);
 }
Exemple #4
0
 FragmentDepotsCursorAdapter(@NonNull AWCursorRecyclerViewFragment binder) {
   super(binder, binder.getString(R.string.column_accountID));
   mCursor.setDataBinder(this);
 }
Exemple #5
0
 @Override
 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
   super.onLoadFinished(loader, cursor);
   columnAccountID = cursor.getColumnIndexOrThrow(tbd.columnName(R.string.column_accountID));
 }
 @Override
 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
   mCurser = cursor;
   indexID = mCurser.getColumnIndexOrThrow(tbd.columnName(R.string._id));
   super.onLoadFinished(loader, cursor);
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setHasOptionsMenu(true);
 }
 @Override
 public void onLoaderReset(Loader<Cursor> p1) {
   super.onLoaderReset(p1);
   mCurser = null;
 }