Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Clothes extends RealmObject{
- @PrimaryKey
- private int id;
- @Required
- private String name;
- @Required
- private String description;
- private float stars;
- private List<ImageView> clothesList;
- public Clothes() {
- }
- public Clothes(String name, String description, float stars, List<ImageView> clothesList ) {
- this.id = MyApp.CityID.incrementAndGet();
- this.name = name;
- this.description = description;
- this.stars = stars;
- this.clothesList = clothesList;
- }
- private ImageView photoGallery;
- private List<ImageView> photos;
- Uri path = data.getData();
- photoGallery.setImageURI(path);
- photos.add((photoGallery));
- Clothes city = new Clothes(name, description, stars, photos);
Add Comment
Please, Sign In to add comment