Example #1
0
 /** 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);
 }
Example #2
0
 @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);
 }
Example #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);
 }
Example #4
0
 FragmentDepotsCursorAdapter(@NonNull AWCursorRecyclerViewFragment binder) {
   super(binder, binder.getString(R.string.column_accountID));
   mCursor.setDataBinder(this);
 }
Example #5
0
 @Override
 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
   super.onLoadFinished(loader, cursor);
   columnAccountID = cursor.getColumnIndexOrThrow(tbd.columnName(R.string.column_accountID));
 }
Example #6
0
 @Override
 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
   mCurser = cursor;
   indexID = mCurser.getColumnIndexOrThrow(tbd.columnName(R.string._id));
   super.onLoadFinished(loader, cursor);
 }
Example #7
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setHasOptionsMenu(true);
 }
Example #8
0
 @Override
 public void onLoaderReset(Loader<Cursor> p1) {
   super.onLoaderReset(p1);
   mCurser = null;
 }