Advertisement
Mihail_Atnsv

Categories

Mar 15th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.87 KB | None | 0 0
  1. package com.roehamptonuniversity.activities;
  2.  
  3. import com.roehamptonuniversity.R;
  4.  
  5. public class Categories {
  6.     private String name;
  7.     private int imageResourceId;
  8.  
  9.     public static final Categories[] category = {
  10.             new Categories("studentLife", R.drawable.student_life),
  11.             new Categories("studentNews", R.drawable.student_news),
  12.             new Categories("studentCommunity", R.drawable.student_community),
  13.             new Categories("studentSport", R.drawable.student_sport),
  14.             new Categories("studentSupport", R.drawable.student_support)
  15.     };
  16.  
  17.     private Categories(String name, int imageResourceId) {
  18.         this.name = name;
  19.         this.imageResourceId = imageResourceId;
  20.     }
  21.  
  22.     public String getName() {
  23.         return name;
  24.     }
  25.  
  26.     public int getImageResourceId() {
  27.         return imageResourceId;
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement