Android Open Source - android-drawerlayout Drawer Item






From Project

Back to project page android-drawerlayout.

License

The source code is released under:

MIT License

If you think the Android project android-drawerlayout listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.tutecentral.navigationdrawer;
/*from  w  w w .ja va 2s . c  o  m*/
public class DrawerItem {

  String ItemName;
  int imgResID;
  String title;
  boolean isSpinner;

  public DrawerItem(String itemName, int imgResID) {
    ItemName = itemName;
    this.imgResID = imgResID;
  }

  public DrawerItem(boolean isSpinner) {
    this(null, 0);
    this.isSpinner = isSpinner;
  }

  public DrawerItem(String title) {
    this(null, 0);
    this.title = title;
  }

  public String getItemName() {
    return ItemName;
  }

  public void setItemName(String itemName) {
    ItemName = itemName;
  }

  public int getImgResID() {
    return imgResID;
  }

  public void setImgResID(int imgResID) {
    this.imgResID = imgResID;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public boolean isSpinner() {
    return isSpinner;
  }

}




Java Source Code List

com.example.android.navigationdrawerexample.MainActivity.java
com.example.drawersample.MainActivity.java
com.tutecentral.navigationdrawer.CustomDrawerAdapter.java
com.tutecentral.navigationdrawer.CustomDrawerAdapter.java
com.tutecentral.navigationdrawer.CustomSpinnerAdapter.java
com.tutecentral.navigationdrawer.DrawerItem.java
com.tutecentral.navigationdrawer.DrawerItem.java
com.tutecentral.navigationdrawer.FragmentOne.java
com.tutecentral.navigationdrawer.FragmentOne.java
com.tutecentral.navigationdrawer.FragmentThree.java
com.tutecentral.navigationdrawer.FragmentThree.java
com.tutecentral.navigationdrawer.FragmentTwo.java
com.tutecentral.navigationdrawer.FragmentTwo.java
com.tutecentral.navigationdrawer.MainActivity.java
com.tutecentral.navigationdrawer.MainActivity.java
com.tutecentral.navigationdrawer.SpinnerItem.java