DrawerActivity¶
-
public class
DrawerActivityextends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener¶ Superclass for all Activities that have a navigation drawer
Fields¶
frameLayout¶
-
protected FrameLayout
frameLayout¶ Parent for the drawer activity
fullLayout¶
-
protected DrawerLayout
fullLayout¶ The inflated user interface for the activity with the drawer
mDrawerLayout¶
-
protected DrawerLayout
mDrawerLayout¶ User interface for the drawer itself
mDrawerToggle¶
-
protected ActionBarDrawerToggle
mDrawerToggle¶ Toggles whether the drawer is visible
subscribedNetworkIds¶
Methods¶
fetchNetworks¶
-
public void
fetchNetworks()¶ This fetches the users subscribed networks and displays them in the navigation drawer.
onConfigurationChanged¶
-
public void
onConfigurationChanged(Configuration newConfig)¶ {@inheritDoc} Also updates the configuration of the drawer toggle by calling
DrawerActivity.mDrawerToggle.onConfigurationChanged(Configuration)with the provided parameter.Parameters: - newConfig – {@inheritDoc}
onPostCreate¶
-
protected void
onPostCreate(Bundle savedInstanceState)¶ {@inheritDoc} Also syncs the state of
DrawerActivity.mDrawerToggleParameters: - savedInstanceState – {@inheritDoc}