[android] Whats new screens.
BIN
android/res/drawable-hdpi/img_whatsnew_traffic.png
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
android/res/drawable-hdpi/img_whatsnew_traffic_roaming.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
android/res/drawable-hdpi/img_whatsnew_update_uber.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
android/res/drawable-mdpi/img_whatsnew_traffic.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
android/res/drawable-mdpi/img_whatsnew_traffic_roaming.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
android/res/drawable-mdpi/img_whatsnew_update_uber.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
android/res/drawable-xhdpi/img_whatsnew_traffic.png
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
android/res/drawable-xhdpi/img_whatsnew_traffic_roaming.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
android/res/drawable-xhdpi/img_whatsnew_update_uber.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
android/res/drawable-xxhdpi/img_whats_new_traffic_roaming.png
Normal file
After Width: | Height: | Size: 91 KiB |
BIN
android/res/drawable-xxhdpi/img_whatsnew_traffic.png
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
android/res/drawable-xxhdpi/img_whatsnew_update_uber.png
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
android/res/drawable-xxxhdpi/img_whatsnew_traffic.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
android/res/drawable-xxxhdpi/img_whatsnew_traffic_roaming.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
android/res/drawable-xxxhdpi/img_whatsnew_update_uber.png
Normal file
After Width: | Height: | Size: 55 KiB |
93
android/res/layout-land/news_page.xml
Normal file
|
@ -0,0 +1,93 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center">
|
||||
<ImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/margin_double_plus"
|
||||
android:layout_marginStart="@dimen/margin_double_plus"
|
||||
android:layout_gravity="center_vertical"
|
||||
tools:src="@drawable/img_whats_new_traffic_roaming"/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="@dimen/margin_double_plus"
|
||||
android:layout_marginRight="@dimen/margin_double_plus"
|
||||
android:layout_marginLeft="@dimen/margin_base"
|
||||
android:layout_marginStart="@dimen/margin_base"
|
||||
android:orientation="vertical">
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center">
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/margin_base"
|
||||
android:textAppearance="@style/MwmTextAppearance.Title"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
tools:text="Whats new feature!"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/subtitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body1.Secondary"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
tools:text="We\'ve made some cool stuff!\nSit down and be happy now, man."/>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/switch_block"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="64dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:background="?clickableBackground">
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/switch_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body1"
|
||||
android:singleLine="true"
|
||||
tools:text="Switch block title"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/switch_subtitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:text="Switch block subtitle"/>
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v7.widget.SwitchCompat
|
||||
android:id="@+id/switch_box"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
|
@ -21,6 +21,18 @@
|
|||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:id="@+id/skip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:text="@string/skip"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
android:textColor="?colorAccent"
|
||||
android:textAllCaps="true"
|
||||
android:padding="@dimen/margin_base"
|
||||
android:background="?clickableBackground"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
android:layout_marginBottom="@dimen/margin_base"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:tag="@string/tag_height_limited"
|
||||
tools:src="@drawable/img_news_booking"/>
|
||||
tools:src="@drawable/img_whats_new_traffic_roaming"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
|
|
|
@ -1059,4 +1059,5 @@
|
|||
<string name="whatsnew_font_size">Размер шрифта</string>
|
||||
<!-- january -->
|
||||
<string name="whatsnew_font_size_text">Названия объектов на карте теперь можно сделать крупнее.</string>
|
||||
<string name="skip">Пропустить</string>
|
||||
</resources>
|
||||
|
|
|
@ -29,29 +29,38 @@
|
|||
|
||||
<!-- What's new -->
|
||||
<integer-array name="news_images">
|
||||
<item>@drawable/img_whatsnew_uber</item>
|
||||
<item>@drawable/img_whatsnew_traffic</item>
|
||||
<item>@drawable/img_whatsnew_traffic_roaming</item>
|
||||
<item>@drawable/img_whatsnew_update_uber</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="news_titles">
|
||||
<item>@string/whatsnew_uber_header</item>
|
||||
<item>@string/whatsnew_traffic</item>
|
||||
<item>@string/whatsnew_traffic_roaming</item>
|
||||
<item>@string/whatsnew_order_taxi</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="news_messages_1">
|
||||
<item>@string/whatsnew_uber_message</item>
|
||||
<item>@string/whatsnew_traffic_text</item>
|
||||
<item>@string/whatsnew_traffic_roaming_text</item>
|
||||
<item>@string/whatsnew_order_taxi_text</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="news_messages_2">
|
||||
<item/>
|
||||
<item/>
|
||||
<item/>
|
||||
</string-array>
|
||||
|
||||
<string-array name="news_switch_titles">
|
||||
<item/>
|
||||
<item/>
|
||||
<item/>
|
||||
</string-array>
|
||||
|
||||
<string-array name="news_switch_subtitles">
|
||||
<item/>
|
||||
<item/>
|
||||
<item/>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
|
|
@ -1063,4 +1063,5 @@
|
|||
<string name="whatsnew_font_size">Font Size</string>
|
||||
<!-- january -->
|
||||
<string name="whatsnew_font_size_text">Labels on the map can be made bigger.</string>
|
||||
<string name="skip">Skip</string>
|
||||
</resources>
|
||||
|
|
|
@ -35,6 +35,7 @@ abstract class BaseNewsFragment extends BaseMwmDialogFragment
|
|||
private View mPrevButton;
|
||||
private View mNextButton;
|
||||
private View mDoneButton;
|
||||
private View mSkipButton;
|
||||
private ImageView[] mDots;
|
||||
|
||||
private int mPageCount;
|
||||
|
@ -164,6 +165,7 @@ abstract class BaseNewsFragment extends BaseMwmDialogFragment
|
|||
UiUtils.showIf(cur > 0, mPrevButton);
|
||||
UiUtils.showIf(cur + 1 < mPageCount, mNextButton);
|
||||
UiUtils.visibleIf(cur + 1 == mPageCount, mDoneButton);
|
||||
UiUtils.visibleIf(cur == 0, mSkipButton);
|
||||
|
||||
if (mPageCount == 1)
|
||||
return;
|
||||
|
@ -253,6 +255,7 @@ abstract class BaseNewsFragment extends BaseMwmDialogFragment
|
|||
mPrevButton = content.findViewById(R.id.back);
|
||||
mNextButton = content.findViewById(R.id.next);
|
||||
mDoneButton = content.findViewById(R.id.done);
|
||||
mSkipButton = content.findViewById(R.id.skip);
|
||||
|
||||
mPrevButton.setOnClickListener(new View.OnClickListener()
|
||||
{
|
||||
|
@ -281,6 +284,15 @@ abstract class BaseNewsFragment extends BaseMwmDialogFragment
|
|||
}
|
||||
});
|
||||
|
||||
mSkipButton.setOnClickListener(new View.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(View v)
|
||||
{
|
||||
dismissAllowingStateLoss();
|
||||
}
|
||||
});
|
||||
|
||||
update();
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "يمكن جعل التسميات على الخريطة أكبر.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Popisky na mapě lze zvětšit.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Etiketterne på kortet kan gøres større.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Bezeichnungen auf der Karte können vergrößert werden.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Labels on the map can be made bigger.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Labels on the map can be made bigger.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Las etiquetas del mapa pueden ampliarse.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Kartan selityksiä voi suurentaa.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Les étiquettes sur la carte peuvent être agrandies.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "A térképen a címkék lehetnek nagyobbak.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Label pada peta bisa dijadikan lebih besar.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Le etichette sulla mappa possono essere ingrandite.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "地図上のラベルを大きくすることができます。";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "지도의 레이블을 더 크게 할 수 있습니다.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Etiketter på kartet kan gjøres større.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Labels op de map kunnen groter gemaakt worden.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Etykiety na mapie dają się powiększyć.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "É possível aumentar o tamanho das letras do mapa.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Etichetele de pe hartă pot fi făcute mai mari.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Названия объектов на карте теперь можно сделать крупнее.";
|
||||
|
||||
"skip" = "Пропустить";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Nápisy na mape je možné zväčšiť.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Etiketter på kartan kan göras större.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "ป้ายบนแผนที่สามารถทำให้ใหญ่ขึ้นได้";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Harita üzerindeki etiketler daha büyük hale getirilebilir.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Можливість збільшення розміру написів на карті.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "Các nhãn mác trên bản đồ có thể được phóng to hơn.";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "可以增大地图上的标签。";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -1791,3 +1791,5 @@
|
|||
|
||||
/* january */
|
||||
"whatsnew_font_size_text" = "可將地圖上的標籤變大。";
|
||||
|
||||
"skip" = "Skip";
|
||||
|
|
|
@ -22067,3 +22067,7 @@
|
|||
hi = नक्शे पर लेबलों को बड़ा किया जा सकता है।
|
||||
pt-BR = Os rótulos no mapa podem ser ampliados.
|
||||
sk = Nápisy na mape je možné zväčšiť.
|
||||
|
||||
[skip]
|
||||
en = Skip
|
||||
ru = Пропустить
|
||||
|
|