// Path: app/src/main/java/my/madet/model/NavDrawerItem.java
// 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;
//     }
// }


import java.util.ArrayList;
import my.madet.model.NavDrawerItem;
import my.madet.uniteninfo.R;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
/*
 * The MIT License (MIT)
 * Copyright (c) 2014 Mahadir Ahmad
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 * 
 * 
 */

/**
 * Drawer Navigation adapters
 *
 * @author Mahadir Ahmad
 * @version 1.0
 * 
 */

package my.madet.adapter;



 
public class NavDrawerListAdapter extends BaseAdapter {
     
    private Context context;
// Path: app/src/main/java/my/madet/model/NavDrawerItem.java
// 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;
//     }
// }


// Path: app/src/main/java/my/madet/adapter/NavDrawerListAdapter.java
import java.util.ArrayList;
import my.madet.model.NavDrawerItem;
import my.madet.uniteninfo.R;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

/*
 * The MIT License (MIT)
 * Copyright (c) 2014 Mahadir Ahmad
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 * 
 * 
 */

/**
 * Drawer Navigation adapters
 *
 * @author Mahadir Ahmad
 * @version 1.0
 * 
 */

package my.madet.adapter;



 
public class NavDrawerListAdapter extends BaseAdapter {
     
    private Context context;
    private ArrayList<NavDrawerItem> navDrawerItems;