From 3fbd6824e21cc65c3a2a655fcca4c6ec84ec35d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Thu, 29 Sep 2016 23:19:43 +0200 Subject: [PATCH] Some fixes for google places. --- .../urbanexplorer/adapters/PlacesAdapter.java | 6 +++++ app/src/main/res/layout/google_place_item.xml | 25 ++++++++++++++++--- 2 files changed, 27 insertions(+), 4 deletions(-) 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