Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zirouan/759a2c554a5d34d8dd05 to your computer and use it in GitHub Desktop.
Save zirouan/759a2c554a5d34d8dd05 to your computer and use it in GitHub Desktop.
Other methods - Navigation Drawer - Material Design
/*{ First item of the position selected from the list }*/
public void setDefaultStartPositionNavigation(int position){}
/*{ get position in the last clicked item list }*/
public int getCurrentPosition(){}
/*{ If not want to use the footer item just put false }*/
public void setFooterNavigationVisible(boolean visible){}
/*{ Item color selected in the list - name and icon }*/
public void setColorSelectedItemNavigation(int colorId){}
/*{ New selector navigation - The default is gray
There is an example in the drawable folder app - selector_check }*/
public void setNewSelectorNavigation(int drawable){}
/*{ Remove selector navigation }*/
public void removeSelectorNavigation(){}
/*{ Add a new counter }*/
public void setNewCounterValue(int position, int value){}
/*{ Increment the counter (current value + new value) }*/
public void setIncreasingCounterValue(int position, int value){}
/*{ Decrement the counter (current value - new value) }*/
public void setDecreaseCountervalue(int position, int value){}
/*{ Footer icon color - version 1.1.0 }*/
public void setFooterIconColorNavigation(int colorId){}
/*{ Remove alpha item navigation (use before the setNavigationAdapter) - version 1.1.0}*/
public void removeAlphaItemNavigation(){}
/*{Item color default in the list - name and icon (use before the setNavigationAdapter) - version 1.1.0}*/
public void setColorDefaultItemNavigation(int colorId){}
/*{Item color default in the list - icon (use before the setNavigationAdapter) - version 1.0.3}*/
public void setColorIconItemNavigation(int colorId){}
/*{Item color default in the list - name (use before the setNavigationAdapter) - version 1.0.3}*/
public void setColorNameItemNavigation(int colorId){}
/*{ Show header default user - version 1.2.0 }*/
public void showDefauldHeader(){}
/*{ remove the default user header - version 1.2.0 }*/
private void removeDefauldHeader(){}
/*{ add header custom user - version 1.2.0 }*/
public void addCustomHeader(View v){}
/*{ remove header custom user - version 1.2.0 }*/
public void removeCustomdHeader(View v){}
/*{ Sets the base elevation of this view, in pixels - version 1.0.2 }*/
public void setElevationToolBar(float elevation){}
/*{ get toolbar }*/
public Toolbar getToolbar() {}
/*{ get DrawerLayout - version 1.1.0 }*/
public DrawerLayout getDrawerLayout() {}
@zhongwcool
Copy link

hi, how can I set the color of counter value? or whether the color can change itslef depend on status when item under selected or not like the menu icon and menu name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment