// Path: app/src/main/java/com/pushapp/press/util/TypefaceManager.java
// public class TypefaceManager {
//     private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
//     private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
//     private static final String AMERICAN_TYPEWRITER = "AmericanTypewriter.ttf";
//     private final LruCache<String, Typeface> mCache;
//     private final AssetManager mAssetManager;
// 
//     public TypefaceManager(AssetManager assetManager) {
//         mAssetManager = assetManager;
//         mCache = new LruCache<>(3);
//     }
// 
//     public Typeface getRobotoRegular() {
//         return getTypeface(ROBOTO_REGULAR);
//     }
// 
//     public Typeface getRobotoMedium() {
//         return getTypeface(ROBOTO_MEDIUM);
//     }
// 
//     public Typeface getAmericanTypewriter() { return getTypeface(AMERICAN_TYPEWRITER);}
// 
//     private Typeface getTypeface(final String filename) {
//         Typeface typeface = mCache.get(filename);
//         if (typeface == null) {
//             typeface = Typeface.createFromAsset(mAssetManager, "fonts/" + filename);
//             mCache.put(filename, typeface);
//         }
//         return typeface;
//     }
// }
// 
// Path: app/src/main/java/com/pushapp/press/adapter/NavigationDrawerAdapter.java
// public class NavigationDrawerAdapter extends RecyclerView.Adapter<NavigationDrawerAdapter.MyViewHolder> {
//     List<NavDrawerItem> data = Collections.emptyList();
//     private LayoutInflater inflater;
//     private Context context;
//     private int[] icons;
// 
//     public NavigationDrawerAdapter(Context context, List<NavDrawerItem> data) {
//         this.context = context;
//         inflater = LayoutInflater.from(context);
//         this.data = data;
//         icons = new int[]{
//                 R.mipmap.ic_home_black_24dp,
//                 R.mipmap.dollar,
//                 R.mipmap.about
//         };
//     }
// 
//     public void delete(int position) {
//         data.remove(position);
//         notifyItemRemoved(position);
//     }
// 
//     @Override
//     public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//         View view = inflater.inflate(R.layout.nav_drawer_row, parent, false);
//         MyViewHolder holder = new MyViewHolder(view);
//         return holder;
//     }
// 
//     @Override
//     public void onBindViewHolder(MyViewHolder holder, int position) {
//         NavDrawerItem current = data.get(position);
//         holder.title.setText(current.getTitle());
//         holder.mIcon.setImageResource(icons[position]);
//     }
// 
//     @Override
//     public int getItemCount() {
//         return data.size();
//     }
// 
//     class MyViewHolder extends RecyclerView.ViewHolder {
// 
//         TextView title;
//         ImageView mIcon;
//         private boolean realColor;
// 
//         public MyViewHolder(View itemView) {
//             super(itemView);
//             title = (TextView) itemView.findViewById(R.id.section_text);
//             mIcon = (ImageView)itemView.findViewById(R.id.section_icon);
// 
// 
//         }
//     }
// }
// 
// Path: app/src/main/java/com/pushapp/press/model/NavDrawerItem.java
// public class NavDrawerItem {
//     private boolean showNotify;
//     private String title;
//     private String iconID;
// 
//     public String getIconID() {
//         return iconID;
//     }
// 
//     public void setIconID(String iconID) {
//         this.iconID = iconID;
//     }
// 
//     public NavDrawerItem() {
// 
//     }
// 
//     public NavDrawerItem(boolean showNotify, String title,String iconID) {
//         this.showNotify = showNotify;
//         this.title = title;
//         this.iconID = iconID;
//     }
// 
//     public boolean isShowNotify() {
//         return showNotify;
//     }
// 
//     public void setShowNotify(boolean showNotify) {
//         this.showNotify = showNotify;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// }


import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.GestureDetector;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.pushapp.press.util.TypefaceManager;
import com.pushapp.press.adapter.NavigationDrawerAdapter;
import com.pushapp.press.model.NavDrawerItem;
import java.util.ArrayList;
import java.util.List;
package com.pushapp.press;




/**
 * @author Bryan Lamtoo
*/
public class FragmentDrawer extends Fragment {

    private static String TAG = FragmentDrawer.class.getSimpleName();

    private RecyclerView recyclerView;
    private ActionBarDrawerToggle mDrawerToggle;
    private DrawerLayout mDrawerLayout;
// Path: app/src/main/java/com/pushapp/press/util/TypefaceManager.java
// public class TypefaceManager {
//     private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
//     private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
//     private static final String AMERICAN_TYPEWRITER = "AmericanTypewriter.ttf";
//     private final LruCache<String, Typeface> mCache;
//     private final AssetManager mAssetManager;
// 
//     public TypefaceManager(AssetManager assetManager) {
//         mAssetManager = assetManager;
//         mCache = new LruCache<>(3);
//     }
// 
//     public Typeface getRobotoRegular() {
//         return getTypeface(ROBOTO_REGULAR);
//     }
// 
//     public Typeface getRobotoMedium() {
//         return getTypeface(ROBOTO_MEDIUM);
//     }
// 
//     public Typeface getAmericanTypewriter() { return getTypeface(AMERICAN_TYPEWRITER);}
// 
//     private Typeface getTypeface(final String filename) {
//         Typeface typeface = mCache.get(filename);
//         if (typeface == null) {
//             typeface = Typeface.createFromAsset(mAssetManager, "fonts/" + filename);
//             mCache.put(filename, typeface);
//         }
//         return typeface;
//     }
// }
// 
// Path: app/src/main/java/com/pushapp/press/adapter/NavigationDrawerAdapter.java
// public class NavigationDrawerAdapter extends RecyclerView.Adapter<NavigationDrawerAdapter.MyViewHolder> {
//     List<NavDrawerItem> data = Collections.emptyList();
//     private LayoutInflater inflater;
//     private Context context;
//     private int[] icons;
// 
//     public NavigationDrawerAdapter(Context context, List<NavDrawerItem> data) {
//         this.context = context;
//         inflater = LayoutInflater.from(context);
//         this.data = data;
//         icons = new int[]{
//                 R.mipmap.ic_home_black_24dp,
//                 R.mipmap.dollar,
//                 R.mipmap.about
//         };
//     }
// 
//     public void delete(int position) {
//         data.remove(position);
//         notifyItemRemoved(position);
//     }
// 
//     @Override
//     public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//         View view = inflater.inflate(R.layout.nav_drawer_row, parent, false);
//         MyViewHolder holder = new MyViewHolder(view);
//         return holder;
//     }
// 
//     @Override
//     public void onBindViewHolder(MyViewHolder holder, int position) {
//         NavDrawerItem current = data.get(position);
//         holder.title.setText(current.getTitle());
//         holder.mIcon.setImageResource(icons[position]);
//     }
// 
//     @Override
//     public int getItemCount() {
//         return data.size();
//     }
// 
//     class MyViewHolder extends RecyclerView.ViewHolder {
// 
//         TextView title;
//         ImageView mIcon;
//         private boolean realColor;
// 
//         public MyViewHolder(View itemView) {
//             super(itemView);
//             title = (TextView) itemView.findViewById(R.id.section_text);
//             mIcon = (ImageView)itemView.findViewById(R.id.section_icon);
// 
// 
//         }
//     }
// }
// 
// Path: app/src/main/java/com/pushapp/press/model/NavDrawerItem.java
// public class NavDrawerItem {
//     private boolean showNotify;
//     private String title;
//     private String iconID;
// 
//     public String getIconID() {
//         return iconID;
//     }
// 
//     public void setIconID(String iconID) {
//         this.iconID = iconID;
//     }
// 
//     public NavDrawerItem() {
// 
//     }
// 
//     public NavDrawerItem(boolean showNotify, String title,String iconID) {
//         this.showNotify = showNotify;
//         this.title = title;
//         this.iconID = iconID;
//     }
// 
//     public boolean isShowNotify() {
//         return showNotify;
//     }
// 
//     public void setShowNotify(boolean showNotify) {
//         this.showNotify = showNotify;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// }


// Path: app/src/main/java/com/pushapp/press/FragmentDrawer.java
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.GestureDetector;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.pushapp.press.util.TypefaceManager;
import com.pushapp.press.adapter.NavigationDrawerAdapter;
import com.pushapp.press.model.NavDrawerItem;
import java.util.ArrayList;
import java.util.List;

package com.pushapp.press;




/**
 * @author Bryan Lamtoo
*/
public class FragmentDrawer extends Fragment {

    private static String TAG = FragmentDrawer.class.getSimpleName();

    private RecyclerView recyclerView;
    private ActionBarDrawerToggle mDrawerToggle;
    private DrawerLayout mDrawerLayout;
    private NavigationDrawerAdapter adapter;