diff --git a/android/res/drawable/list_divider.xml b/android/res/drawable/list_divider.xml new file mode 100644 index 0000000000..d2415982e5 --- /dev/null +++ b/android/res/drawable/list_divider.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/android/res/layout/place_page_ugc.xml b/android/res/layout/place_page_ugc.xml index b76bb6cdca..87dbe2aa67 100644 --- a/android/res/layout/place_page_ugc.xml +++ b/android/res/layout/place_page_ugc.xml @@ -238,10 +238,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" tools:listitem="@layout/item_ugc_comment"/> - @drawable/ic_logo_viator_light @drawable/bg_rating_button + + @drawable/list_divider diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index f31d781671..781102cf7f 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -680,6 +680,8 @@ public class PlacePageView extends RelativeLayout RecyclerView rvHotelReview = (RecyclerView) findViewById(R.id.rv__pp_ugc_reviews); rvHotelReview.setLayoutManager(new LinearLayoutManager(getContext())); rvHotelReview.getLayoutManager().setAutoMeasureEnabled(true); + rvHotelReview.addItemDecoration(ItemDecoratorFactory.createDefaultDecorator(getContext(), + LinearLayoutManager.VERTICAL)); rvHotelReview.setNestedScrollingEnabled(false); rvHotelReview.setHasFixedSize(false); rvHotelReview.setAdapter(mUGCReviewAdapter); @@ -694,7 +696,6 @@ public class PlacePageView extends RelativeLayout rvRatingRecords.setAdapter(mUGCRatingRecordsAdapter); } - private void initHotelRatingView() { mHotelReview = findViewById(R.id.ll__place_hotel_rating); diff --git a/android/src/com/mapswithme/maps/widget/recycler/ItemDecoratorFactory.java b/android/src/com/mapswithme/maps/widget/recycler/ItemDecoratorFactory.java index 6e7672c9bb..62a9e80c42 100644 --- a/android/src/com/mapswithme/maps/widget/recycler/ItemDecoratorFactory.java +++ b/android/src/com/mapswithme/maps/widget/recycler/ItemDecoratorFactory.java @@ -36,4 +36,11 @@ public class ItemDecoratorFactory decoration.setDrawable(ContextCompat.getDrawable(context, R.drawable.divider_transparent_base)); return decoration; } + + @NonNull + public static RecyclerView.ItemDecoration createDefaultDecorator(@NonNull Context context, + int orientation) + { + return new DividerItemDecoration(context, orientation); + } }