[android] fix: WhatsNew updated for night style.

This commit is contained in:
Alexander Marchuk 2016-01-18 14:02:39 +03:00
parent b30c4f481a
commit 4daa465805
19 changed files with 12 additions and 27 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 KiB

View file

@ -35,12 +35,13 @@
android:id="@+id/dots"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
<ImageView
android:layout_gravity="center"
android:visibility="gone">
<!--ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="9dp"
tools:src="@drawable/news_marker_active"/>
tools:src="@drawable/news_marker_active"/-->
<ImageView
android:layout_width="wrap_content"

View file

@ -32,12 +32,12 @@
<ImageView
android:id="@+id/image"
android:layout_width="180dp"
android:layout_height="180dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/margin_base"
android:layout_gravity="center_horizontal"
android:tag="@string/tag_height_limited"
tools:src="@drawable/img_news_3d"/>
tools:src="@drawable/img_news_night"/>
<TextView
android:id="@+id/subtitle"

View file

@ -42,27 +42,22 @@
<!-- What's new -->
<integer-array name="news_images">
<item>@drawable/img_news_3d</item>
<item>@drawable/img_news_3d_buildings</item>
<item>@drawable/img_news_night</item>
</integer-array>
<string-array name="news_titles">
<item>@string/whats_new_3d_title</item>
<item>@string/whats_new_3d_buildings_title</item>
<item>@string/whats_new_night_caption</item>
</string-array>
<string-array name="news_subtitles">
<item>@string/whats_new_3d_subtitle</item>
<item>@string/whats_new_3d_buildings_subtitle</item>
<item>@string/whats_new_night_body</item>
</string-array>
<string-array name="news_switch_titles">
<item>@string/pref_map_3d_title</item>
<item>@string/pref_map_3d_buildings_title</item>
<item/>
</string-array>
<string-array name="news_switch_subtitles">
<item/>
<item/>
</string-array>
</resources>

View file

@ -48,9 +48,6 @@ public class NewsFragment extends BaseMwmDialogFragment
mImages[i] = images.getResourceId(i, 0);
images.recycle();
// TODO: Temporary solution. Remove for the next WhatsNews
mSubtitles[1] += "\n\n" + MwmApplication.get().getString(R.string.whats_new_3d_update_maps);
}
@Override
@ -100,15 +97,7 @@ public class NewsFragment extends BaseMwmDialogFragment
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
{
Framework.Params3dMode _3d = new Framework.Params3dMode();
Framework.nativeGet3dMode(_3d);
if (position == 0)
_3d.enabled = isChecked;
else
_3d.buildings = isChecked;
Framework.nativeSet3dMode(_3d.enabled, _3d.buildings);
// Unused now
}
});