use of eu.davidea.samples.flexibleadapter.items.InstagramItem in project FlexibleAdapter by davideas.
the class DatabaseService method newInstagramItem.
/*
* Creates a similar instagram item with a Header linked.
*/
public static InstagramItem newInstagramItem(int i) {
InstagramHeaderItem header = new InstagramHeaderItem("H" + i);
String place = InstagramRandomData.getRandomPlace();
return new InstagramItem("I" + i, header).withName(InstagramRandomData.getRandomName()).withPlace(place).withImageUrl(InstagramRandomData.getImageUrl(place));
}
Aggregations