forked from organicmaps/organicmaps
Added Sixt partner in code
This commit is contained in:
parent
e9db2fdd2e
commit
528188bc11
15 changed files with 49 additions and 0 deletions
BIN
android/res/drawable-hdpi/ic_24px_logo_partner2.png
Normal file
BIN
android/res/drawable-hdpi/ic_24px_logo_partner2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
android/res/drawable-mdpi/ic_24px_logo_partner2.png
Normal file
BIN
android/res/drawable-mdpi/ic_24px_logo_partner2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 952 B |
13
android/res/drawable-v21/button_partner2.xml
Normal file
13
android/res/drawable-v21/button_partner2.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<ripple
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?attr/colorControlHighlight">
|
||||
<item>
|
||||
<selector>
|
||||
<item android:drawable="@color/bg_brand_partner2_pressed"
|
||||
android:state_pressed="true"/>
|
||||
|
||||
<item android:drawable="@color/bg_brand_partner2"/>
|
||||
</selector>
|
||||
</item>
|
||||
</ripple>
|
||||
|
BIN
android/res/drawable-xhdpi/ic_24px_logo_partner2.png
Normal file
BIN
android/res/drawable-xhdpi/ic_24px_logo_partner2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
android/res/drawable-xxhdpi/ic_24px_logo_partner2.png
Normal file
BIN
android/res/drawable-xxhdpi/ic_24px_logo_partner2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
android/res/drawable-xxxhdpi/ic_24px_logo_partner2.png
Normal file
BIN
android/res/drawable-xxxhdpi/ic_24px_logo_partner2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
7
android/res/drawable/button_partner2.xml
Normal file
7
android/res/drawable/button_partner2.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@color/bg_brand_partner2_pressed"
|
||||
android:state_pressed="true"/>
|
||||
|
||||
<item android:drawable="@color/bg_brand_partner2"/>
|
||||
</selector>
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
<color name="bg_brand_partner1">#FF303438</color>
|
||||
<color name="bg_brand_partner1_pressed">#FF25282B</color>
|
||||
<color name="bg_brand_partner2">#FFD7D7D7</color>
|
||||
<color name="bg_brand_partner2_pressed">#FFD7D7D7</color>
|
||||
<color name="bg_brand_partner3">#FFE61717</color>
|
||||
<color name="bg_brand_partner3_pressed">#FFB31212</color>
|
||||
<color name="bg_brand_partner18">#FF00B956</color>
|
||||
|
|
|
@ -33,6 +33,7 @@ public final class PlacePageButtons
|
|||
// Do NOT change it manually.
|
||||
// %PartnersExtender.PartnerItemMap
|
||||
put(PartnerItem.PARTNER1.getIndex(), PartnerItem.PARTNER1);
|
||||
put(PartnerItem.PARTNER2.getIndex(), PartnerItem.PARTNER2);
|
||||
put(PartnerItem.PARTNER3.getIndex(), PartnerItem.PARTNER3);
|
||||
put(PartnerItem.PARTNER18.getIndex(), PartnerItem.PARTNER18);
|
||||
put(PartnerItem.PARTNER19.getIndex(), PartnerItem.PARTNER19);
|
||||
|
@ -121,6 +122,7 @@ public final class PlacePageButtons
|
|||
// Do NOT change it manually.
|
||||
// %PartnersExtender.ButtonType
|
||||
PARTNER1,
|
||||
PARTNER2,
|
||||
PARTNER3,
|
||||
PARTNER18,
|
||||
PARTNER19,
|
||||
|
@ -154,6 +156,12 @@ public final class PlacePageButtons
|
|||
new ImageResources(R.drawable.ic_24px_logo_partner1),
|
||||
R.drawable.button_partner1,
|
||||
ButtonType.PARTNER1),
|
||||
PARTNER2(
|
||||
2,
|
||||
R.string.sponsored_partner2_action,
|
||||
new ImageResources(R.drawable.ic_24px_logo_partner2),
|
||||
R.drawable.button_partner2,
|
||||
ButtonType.PARTNER2),
|
||||
PARTNER3(
|
||||
3,
|
||||
R.string.sponsored_partner3_action,
|
||||
|
|
|
@ -527,6 +527,11 @@ public class PlacePageView extends RelativeLayout
|
|||
color = Color.WHITE;
|
||||
break;
|
||||
|
||||
case PARTNER2:
|
||||
frame.setBackgroundResource(item.getBackgroundResource());
|
||||
color = Color.BLACK;
|
||||
break;
|
||||
|
||||
case BOOKMARK:
|
||||
mBookmarkButtonIcon = icon;
|
||||
updateBookmarkBtn();
|
||||
|
@ -633,6 +638,7 @@ public class PlacePageView extends RelativeLayout
|
|||
// Do NOT change it manually.
|
||||
// %PartnersExtender.SwitchClick
|
||||
case PARTNER1:
|
||||
case PARTNER2:
|
||||
case PARTNER3:
|
||||
case PARTNER18:
|
||||
case PARTNER19:
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
+ (UIColor *)partner1Background;
|
||||
+ (UIColor *)partner1TextColor;
|
||||
+ (UIColor *)partner2Background;
|
||||
+ (UIColor *)partner2TextColor;
|
||||
+ (UIColor *)partner3Background;
|
||||
+ (UIColor *)partner3TextColor;
|
||||
+ (UIColor *)partner18Background;
|
||||
|
|
|
@ -11,6 +11,14 @@
|
|||
{
|
||||
return [UIColor colorWithRed:scaled(255) green:scaled(255) blue:scaled(255) alpha:1];
|
||||
}
|
||||
+ (UIColor *)partner2Background
|
||||
{
|
||||
return [UIColor colorWithRed:scaled(215) green:scaled(215) blue:scaled(215) alpha:1];
|
||||
}
|
||||
+ (UIColor *)partner2TextColor
|
||||
{
|
||||
return [UIColor colorWithRed:scaled(33) green:scaled(33) blue:scaled(33) alpha:1];
|
||||
}
|
||||
+ (UIColor *)partner3Background
|
||||
{
|
||||
return [UIColor colorWithRed:scaled(230) green:scaled(23) blue:scaled(23) alpha:1];
|
||||
|
|
1
iphone/Maps/Images.xcassets/Place Page/ic_28px_logo_partner2.imageset/Contents.json
vendored
Normal file
1
iphone/Maps/Images.xcassets/Place Page/ic_28px_logo_partner2.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"images": [{"idiom": "universal", "filename": "ic_28px_logo_partner2.pdf"}], "info": {"version": 1, "author": "xcode"}}
|
BIN
iphone/Maps/Images.xcassets/Place Page/ic_28px_logo_partner2.imageset/ic_28px_logo_partner2.pdf
vendored
Normal file
BIN
iphone/Maps/Images.xcassets/Place Page/ic_28px_logo_partner2.imageset/ic_28px_logo_partner2.pdf
vendored
Normal file
Binary file not shown.
|
@ -6,6 +6,8 @@
|
|||
std::vector<PartnerInfo> const kPartners = {
|
||||
PartnerInfo(1, "McArthurGlen", true /* m_hasButton */,
|
||||
"https://localads.maps.me/redirects/mcarthurglen", 180705),
|
||||
PartnerInfo(2, "Sixt", true /* m_hasButton */,
|
||||
"https://localads.maps.me/redirects/sixt", 180912),
|
||||
PartnerInfo(3, "BurgerKing", true /* m_hasButton */),
|
||||
PartnerInfo(18, "MegafonGreenDot", true /* m_hasButton */,
|
||||
"https://localads.maps.me/redirects/megafon_green"),
|
||||
|
|
Loading…
Add table
Reference in a new issue