Android Open Source - Kodesearch Nav Drawer Item






From Project

Back to project page Kodesearch.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project Kodesearch 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.kodesearch.external;
//from w  w w  .jav a2  s  . c  o  m
public class NavDrawerItem {
  
  private String title;
  private int icon;
  private String count = "0";
  // boolean to set visiblity of the counter
  private boolean isCounterVisible = false;
  
  public NavDrawerItem(){}

  public NavDrawerItem(String title, int icon){
    this.title = title;
    this.icon = icon;
  }
  
  public NavDrawerItem(String title, int icon, boolean isCounterVisible, String count){
    this.title = title;
    this.icon = icon;
    this.isCounterVisible = isCounterVisible;
    this.count = count;
  }
  
  public String getTitle(){
    return this.title;
  }
  
  public int getIcon(){
    return this.icon;
  }
  
  public String getCount(){
    return this.count;
  }
  
  public boolean getCounterVisibility(){
    return this.isCounterVisible;
  }
  
  public void setTitle(String title){
    this.title = title;
  }
  
  public void setIcon(int icon){
    this.icon = icon;
  }
  
  public void setCount(String count){
    this.count = count;
  }
  
  public void setCounterVisibility(boolean isCounterVisible){
    this.isCounterVisible = isCounterVisible;
  }
}




Java Source Code List

com.kodesearch.ListResults.java
com.kodesearch.MainActivity.java
com.kodesearch.NewsFragment.java
com.kodesearch.SearchFragment.java
com.kodesearch.ServiceHandler.java
com.kodesearch.ViewResult.java
com.kodesearch.external.AlertDialogManager.java
com.kodesearch.external.CleanHtml.java
com.kodesearch.external.ConnectionDetector.java
com.kodesearch.external.FragmentNavigationDrawer.java
com.kodesearch.external.MainFragment.java
com.kodesearch.external.NavDrawerItem.java
com.kodesearch.external.NavDrawerListAdapter.java
com.kodesearch.external.RobotoButton.java
com.kodesearch.external.RobotoTextView.java
com.kodesearch.external.RobotoTypefaceManager.java
com.kodesearch.external.ShareWithTwitter.java