forked from organicmaps/organicmaps
[android] Added second 'more on Booking.com' button at PP bottom
This commit is contained in:
parent
142754b224
commit
003ea07a24
7 changed files with 28 additions and 9 deletions
|
@ -39,8 +39,6 @@
|
|||
|
||||
<include layout="@layout/place_page_hotel_description"/>
|
||||
|
||||
<include layout="@layout/place_page_more"/>
|
||||
|
||||
<include layout="@layout/place_page_hotel_facilities"/>
|
||||
|
||||
<include layout="@layout/place_page_hotel_nearby"/>
|
||||
|
@ -75,6 +73,10 @@
|
|||
|
||||
<include layout="@layout/divider_horizontal"/>
|
||||
|
||||
<include layout="@layout/place_page_more"/>
|
||||
|
||||
<include layout="@layout/divider_horizontal"/>
|
||||
|
||||
<include layout="@layout/place_page_editor"/>
|
||||
|
||||
<include layout="@layout/place_page_add_business"/>
|
||||
|
|
|
@ -99,6 +99,9 @@
|
|||
|
||||
<include layout="@layout/place_page_taxi"/>
|
||||
|
||||
<include layout="@layout/divider_horizontal"/>
|
||||
|
||||
<include layout="@layout/place_page_more"/>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
<include layout="@layout/place_page_hotel_description"/>
|
||||
|
||||
<include layout="@layout/place_page_more"/>
|
||||
|
||||
<include layout="@layout/place_page_hotel_facilities"/>
|
||||
|
||||
<include layout="@layout/place_page_hotel_nearby"/>
|
||||
|
@ -61,6 +59,10 @@
|
|||
|
||||
<include layout="@layout/divider_horizontal"/>
|
||||
|
||||
<include layout="@layout/place_page_more"/>
|
||||
|
||||
<include layout="@layout/divider_horizontal"/>
|
||||
|
||||
<include layout="@layout/place_page_editor"/>
|
||||
|
||||
<include layout="@layout/place_page_add_business"/>
|
||||
|
|
|
@ -40,4 +40,14 @@
|
|||
android:text="@string/placepage_more_button"/>
|
||||
|
||||
<include layout="@layout/divider_horizontal"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv__place_hotel_more_on_web"
|
||||
style="@style/PlacePageMetadataText.Button"
|
||||
android:height="@dimen/height_block_base"
|
||||
android:background="?clickableBackground"
|
||||
android:gravity="center"
|
||||
android:text="@string/details"/>
|
||||
|
||||
<include layout="@layout/divider_horizontal"/>
|
||||
</LinearLayout>
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
android:layout_marginLeft="@dimen/margin_base"
|
||||
android:layout_marginRight="@dimen/margin_base"
|
||||
android:background="?dividerHorizontal"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv__place_hotel_reviews_more"
|
||||
style="@style/PlacePageMetadataText.Button"
|
||||
|
@ -54,6 +55,6 @@
|
|||
android:background="?clickableBackground"
|
||||
android:gravity="center"
|
||||
android:text="@string/placepage_more_reviews_button"/>
|
||||
<include
|
||||
layout="@layout/divider_horizontal"/>
|
||||
|
||||
<include layout="@layout/divider_horizontal"/>
|
||||
</LinearLayout>
|
||||
|
|
|
@ -13,7 +13,4 @@
|
|||
android:background="?clickableBackground"
|
||||
android:gravity="center"
|
||||
android:text="@string/details"/>
|
||||
|
||||
<include
|
||||
layout="@layout/divider_horizontal"/>
|
||||
</LinearLayout>
|
||||
|
|
|
@ -153,6 +153,7 @@ public class PlacePageView extends RelativeLayout
|
|||
private View mHotelDescription;
|
||||
private LineCountTextView mTvHotelDescription;
|
||||
private View mHotelMoreDescription;
|
||||
private View mHotelMoreDescriptionOnWeb;
|
||||
private View mHotelFacilities;
|
||||
private View mHotelMoreFacilities;
|
||||
private View mHotelGallery;
|
||||
|
@ -553,8 +554,10 @@ public class PlacePageView extends RelativeLayout
|
|||
mHotelDescription = findViewById(R.id.ll__place_hotel_description);
|
||||
mTvHotelDescription = (LineCountTextView) findViewById(R.id.tv__place_hotel_details);
|
||||
mHotelMoreDescription = findViewById(R.id.tv__place_hotel_more);
|
||||
mHotelMoreDescriptionOnWeb = findViewById(R.id.tv__place_hotel_more_on_web);
|
||||
mTvHotelDescription.setListener(this);
|
||||
mHotelMoreDescription.setOnClickListener(this);
|
||||
mHotelMoreDescriptionOnWeb.setOnClickListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1377,6 +1380,7 @@ public class PlacePageView extends RelativeLayout
|
|||
addPlace();
|
||||
break;
|
||||
case R.id.ll__more:
|
||||
case R.id.tv__place_hotel_more_on_web:
|
||||
onSponsoredClick(false /* book */);
|
||||
break;
|
||||
case R.id.ll__place_latlon:
|
||||
|
|
Loading…
Add table
Reference in a new issue