daimajia / daimajia/AndroidImageSlider
image show only 1
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
i've use retrofit for get value from my server, but image only show 1, on server there is 2 data
here my code
http://imgur.com/hCqGk8F
```java
private void setSlider() {
Call response = api.getPlaces();
response.enqueue(new Callback() {
@Override
public void onResponse(Call call, retrofit2.Response response) {
for (int i=0; i call, Throwable t) {
Log.e(TAG, t.getMessage());
}
});
}
```
and for json
```js
{
"status": 200,
"message": "OK",
"result": [
{
"id": "5899b3f6af9fb14829458448",
"title": "telaga ngebel",
"location": {
"address": "ponorogo jawa timur",
"latitude": -7.7971918,
"longitude": 111.6235559
},
"description": "telaga",
"telephone": "",
"category": "tour",
"opening_hours": "00:00-00:00 WIB",
"price_range": "10.000/people",
"rating": 6.2,
"img_url": "https://mw2.google.com/mw-panoramio/photos/medium/65434049.jpg"
},
{
"id": "5899b487af9fb14829458449",
"title": "Telaga Sarangan",
"location": {
"address": "Sarangan Plaosan Megetan Jawa Timur",
"latitude": -7.677222,
"longitude": 111.2155893
},
"description": "telaga",
"telephone": "",
"category": "tour",
"opening_hours": "00:00-00:00 WIB",
"price_range": "10.000/people",
"rating": 8.9,
"img_url": "http://www.yukpiknik.com/wp-content/uploads/2015/04/telaga-sarangan-3-1.jpg"
},
{
"id": "589b903d666a6f1c9f02e3ba",
"title": "Monumen Kresek",
"location": {
"address": "Kresek, Wungu, Madiun, Jawa Timur",
"latitude": -7.7051069,
"longitude": 111.6290412
},
"description": "monument",
"telephone": "",
"category": "tour",
"opening_hours": "08:00 AM - 05:00 PM WIB",
"price_range": "Free",
"rating": 4.3,
"img_url": "http://static.panoramio.com/photos/large/82777960.jpg"
}
]
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.