diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/adapters/PlacesAdapter.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/adapters/PlacesAdapter.java index d972a47..d20b44f 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/adapters/PlacesAdapter.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/adapters/PlacesAdapter.java @@ -38,6 +38,12 @@ public class PlacesAdapter extends ArrayAdapter { TextView placeDescriptionWidget = (TextView) resultView.findViewById(R.id.place_description); placeDescriptionWidget.setText(item.getName()); + TextView placeAddressWidget = (TextView) resultView.findViewById(R.id.place_address); + placeAddressWidget.setText(item.getVicinity()); + + TextView placeRateWidget = (TextView) resultView.findViewById(R.id.place_rate); + placeRateWidget.setText("" + item.getRating()); + ImageView placePreviewWidget = (ImageView)resultView.findViewById(R.id.place_img_preview); ImageLoader.getInstance().displayImage( diff --git a/app/src/main/res/layout/google_place_item.xml b/app/src/main/res/layout/google_place_item.xml index 8eb343a..0f97e63 100644 --- a/app/src/main/res/layout/google_place_item.xml +++ b/app/src/main/res/layout/google_place_item.xml @@ -9,9 +9,26 @@ android:layout_height="80dp" android:layout_marginRight="8dp"/> - + + + + + + + + + + \ No newline at end of file