ProfileListItem.java 757 B

1234567891011121314151617181920212223242526272829
  1. package de.tudarmstadt.informatik.hostage.ui2.model;
  2. import android.graphics.Bitmap;
  3. import android.graphics.BitmapFactory;
  4. import de.tudarmstadt.informatik.hostage.ui2.activity.MainActivity;
  5. /**
  6. * @author Alexander Brakowski
  7. * @created 14.01.14 18:04
  8. */
  9. public class ProfileListItem {
  10. public String label;
  11. public String text;
  12. public boolean activated;
  13. public Bitmap icon;
  14. public ProfileListItem(String text, String label, Bitmap icon){
  15. this.text = text;
  16. this.label = label;
  17. this.activated = false;
  18. this.icon = icon;
  19. }
  20. public ProfileListItem(String text, String label, int icon){
  21. this(text, label, BitmapFactory.decodeResource(MainActivity.context.getResources(), icon));
  22. }
  23. }