Esempio n. 1
0
  public static List<NavDrawerItem> getData() {
    List<NavDrawerItem> data = new ArrayList<>();

    // preparing navigation drawer items
    for (int i = 0; i < titles.length; i++) {
      NavDrawerItem navItem = new NavDrawerItem();
      navItem.setTitle(titles[i]);
      data.add(navItem);
    }
    return data;
  }
 @Override
 public void onBindViewHolder(MyViewHolder holder, int position) {
   NavDrawerItem current = data.get(position);
   holder.title.setText(current.getTitle());
 }