BuildmLearn-Toolkit-Android  2.0.0
The Android version of the BuildmLearn Toolkit. BuildmLearn Toolkit is an easy-to-use program that helps the users make mobile apps without any knowledge of application development.
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.buildmlearn.toolkit.fragment.NavigationDrawerFragment Class Reference
Inheritance diagram for org.buildmlearn.toolkit.fragment.NavigationDrawerFragment:
Inheritance graph
[legend]
Collaboration diagram for org.buildmlearn.toolkit.fragment.NavigationDrawerFragment:
Collaboration graph
[legend]

Classes

interface  NavigationDrawerCallbacks
 

Public Member Functions

void onCreate (Bundle savedInstanceState)
 
void onActivityCreated (Bundle savedInstanceState)
 
View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 
boolean isDrawerOpen ()
 
void setUp (int fragmentId, DrawerLayout drawerLayout)
 
void onAttach (Context context)
 
void onDetach ()
 
void onSaveInstanceState (Bundle outState)
 
void onConfigurationChanged (Configuration newConfig)
 
void onCreateOptionsMenu (Menu menu, MenuInflater inflater)
 
boolean onOptionsItemSelected (MenuItem item)
 
void closeDrawer ()
 

Private Member Functions

void setLayoutParamsForListView ()
 
void selectItem (int position)
 
void showGlobalContextActionBar ()
 
ActionBar getActionBar ()
 

Private Attributes

NavigationDrawerCallbacks mCallbacks
 
ActionBarDrawerToggle mDrawerToggle
 
DrawerLayout mDrawerLayout
 
ListView mDrawerListView
 
View mFragmentContainerView
 
boolean mFromSavedInstanceState
 
boolean mUserLearnedDrawer
 
boolean isClicked = false
 
Section[] menus
 
int selectedSectionMenu = 0
 

Static Private Attributes

static final String STATE_SELECTED_POSITION = "selected_navigation_drawer_position"
 
static final String PREF_USER_LEARNED_DRAWER = "navigation_drawer_learned"
 

Detailed Description

Fragment used for managing interactions for and presentation of a navigation drawer. See the design guidelines for a complete explanation of the behaviors implemented here.

Member Function Documentation

void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.closeDrawer ( )
ActionBar org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.getActionBar ( )
private
boolean org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.isDrawerOpen ( )
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onActivityCreated ( Bundle  savedInstanceState)
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onAttach ( Context  context)
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onConfigurationChanged ( Configuration  newConfig)
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onCreate ( Bundle  savedInstanceState)
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onCreateOptionsMenu ( Menu  menu,
MenuInflater  inflater 
)
View org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onCreateView ( LayoutInflater  inflater,
ViewGroup  container,
Bundle  savedInstanceState 
)
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onDetach ( )
boolean org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onOptionsItemSelected ( MenuItem  item)
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.onSaveInstanceState ( Bundle  outState)
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.selectItem ( int  position)
private
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.setLayoutParamsForListView ( )
private
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.setUp ( int  fragmentId,
DrawerLayout  drawerLayout 
)

Users of this fragment must call this method to set up the navigation drawer interactions.

Parameters
fragmentIdThe android:id of this fragment in its activity's layout.
drawerLayoutThe DrawerLayout containing this fragment's UI.
void org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.showGlobalContextActionBar ( )
private

Per the navigation drawer design guidelines, updates the action bar to show the global app 'context', rather than just what's in the current screen.

Member Data Documentation

boolean org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.isClicked = false
private
NavigationDrawerCallbacks org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.mCallbacks
private

A pointer to the current callbacks instance (the Activity).

DrawerLayout org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.mDrawerLayout
private
ListView org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.mDrawerListView
private
ActionBarDrawerToggle org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.mDrawerToggle
private

Helper component that ties the action bar to the navigation drawer.

Section [] org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.menus
private
View org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.mFragmentContainerView
private
boolean org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.mFromSavedInstanceState
private
boolean org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.mUserLearnedDrawer
private
final String org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.PREF_USER_LEARNED_DRAWER = "navigation_drawer_learned"
staticprivate

Per the design guidelines, you should show the drawer on launch until the user manually expands it. This shared preference tracks this.

int org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.selectedSectionMenu = 0
private
final String org.buildmlearn.toolkit.fragment.NavigationDrawerFragment.STATE_SELECTED_POSITION = "selected_navigation_drawer_position"
staticprivate

Remember the position of the selected item.


The documentation for this class was generated from the following file: