Guest User

Untitled

a guest
Mar 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. public class Clothes extends RealmObject{
  2.  
  3.  
  4. @PrimaryKey
  5. private int id;
  6. @Required
  7. private String name;
  8. @Required
  9. private String description;
  10. private float stars;
  11. private List<ImageView> clothesList;
  12.  
  13. public Clothes() {
  14. }
  15.  
  16. public Clothes(String name, String description, float stars, List<ImageView> clothesList ) {
  17. this.id = MyApp.CityID.incrementAndGet();
  18. this.name = name;
  19. this.description = description;
  20. this.stars = stars;
  21. this.clothesList = clothesList;
  22. }
  23.  
  24. private ImageView photoGallery;
  25. private List<ImageView> photos;
  26.  
  27. Uri path = data.getData();
  28. photoGallery.setImageURI(path);
  29. photos.add((photoGallery));
  30.  
  31. Clothes city = new Clothes(name, description, stars, photos);
Add Comment
Please, Sign In to add comment