Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.roehamptonuniversity.activities;
- import com.roehamptonuniversity.R;
- public class Categories {
- private String name;
- private int imageResourceId;
- public static final Categories[] category = {
- new Categories("studentLife", R.drawable.student_life),
- new Categories("studentNews", R.drawable.student_news),
- new Categories("studentCommunity", R.drawable.student_community),
- new Categories("studentSport", R.drawable.student_sport),
- new Categories("studentSupport", R.drawable.student_support)
- };
- private Categories(String name, int imageResourceId) {
- this.name = name;
- this.imageResourceId = imageResourceId;
- }
- public String getName() {
- return name;
- }
- public int getImageResourceId() {
- return imageResourceId;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement