Back to project page Learn-From-Me.
The source code is released under:
Apache License
If you think the Android project Learn-From-Me listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.overnightApps.myapplication.app.ui.homeFragments.absFragments; // ww w .jav a 2 s .co m import android.app.ActionBar; import android.os.Bundle; import com.overnightApps.myapplication.app.ui.homeFragments.LearnFragment; import com.overnightApps.myapplication.app.ui.optionsMenus.MenuOptions; import butterknife.ButterKnife; /** * Created by andre on 3/16/14. */ public abstract class FilterListFragment extends MyListFragment { /** * The adapter handed to the list view */ protected LearnFragment.ParseLetterQueryAdapter adapter; public void onResume() { super.onResume(); setUpMenuOptionsOnActionBar(getMenuOptions(), getMenuOnNavigationListener()); } @Override public void onDestroyView() { super.onDestroyView(); ButterKnife.reset(this); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); } protected abstract ActionBar.OnNavigationListener getMenuOnNavigationListener(); protected abstract MenuOptions getMenuOptions(); }