[android] Night mode in rating bar.

This commit is contained in:
velichkomarija 2021-02-04 09:53:05 +03:00 committed by Aleksandr Zatsepin
parent eca1851d1a
commit bf6ba4fa1b
58 changed files with 44 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 944 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 759 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 768 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background"
android:drawable="@drawable/ic_12px_rating_star_off"/>
android:drawable="@drawable/ic_review_disable_light_12"/>
<item android:id="@android:id/secondaryProgress"
android:drawable="@drawable/ic_12px_rating_star_off"/>
android:drawable="@drawable/ic_review_disable_light_12"/>
<item android:id="@android:id/progress"
android:drawable="@drawable/ic_12px_rating_star_on"/>
android:drawable="@drawable/ic_review_active_12"/>
</layer-list>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background"
android:drawable="@drawable/ic_review_disable_dark_12"/>
<item android:id="@android:id/secondaryProgress"
android:drawable="@drawable/ic_review_disable_dark_12"/>
<item android:id="@android:id/progress"
android:drawable="@drawable/ic_review_active_12"/>
</layer-list>

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background"
android:drawable="@drawable/ic_24px_rating_star_off"/>
android:drawable="@drawable/ic_review_disable_light_24"/>
<item android:id="@android:id/secondaryProgress"
android:drawable="@drawable/ic_24px_rating_star_off"/>
android:drawable="@drawable/ic_review_disable_light_24"/>
<item android:id="@android:id/progress"
android:drawable="@drawable/ic_24px_rating_star_on"/>
android:drawable="@drawable/ic_review_active_24"/>
</layer-list>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background"
android:drawable="@drawable/ic_review_disable_dark_24"/>
<item android:id="@android:id/secondaryProgress"
android:drawable="@drawable/ic_review_disable_dark_24"/>
<item android:id="@android:id/progress"
android:drawable="@drawable/ic_review_active_24"/>
</layer-list>

View file

@ -18,7 +18,7 @@
tools:text="Service"/>
<RatingBar
android:id="@+id/rb__rate"
style="@style/MwmWidget.RatingBar.Ugc"
style="?ratingBarStyle"
android:layout_width="wrap_content"
android:layout_height="24dp"
android:layout_alignParentRight="true"

View file

@ -13,7 +13,7 @@
tools:text="Label"/>
<RatingBar
android:id="@+id/rating"
style="@style/MwmWidget.RatingBarSmall.Ugc"
style="?ratingBarStyleSmall"
android:layout_marginTop="@dimen/margin_quarter"
android:numStars="5"
android:layout_width="wrap_content"

View file

@ -287,12 +287,24 @@
<item name="android:stepSize">1</item>
</style>
<style name="MwmWidget.RatingBar.Ugc.Night">
<item name="android:progressDrawable">@drawable/rating_bar_ugc_night</item>
<item name="android:indeterminateDrawable">@drawable/rating_bar_ugc_night</item>
<item name="android:stepSize">1</item>
</style>
<style name="MwmWidget.RatingBarSmall.Ugc">
<item name="android:progressDrawable">@drawable/rating_bar_small_ugc</item>
<item name="android:indeterminateDrawable">@drawable/rating_bar_small_ugc</item>
<item name="android:stepSize">0.01</item>
</style>
<style name="MwmWidget.RatingBarSmall.Ugc.Night">
<item name="android:progressDrawable">@drawable/rating_bar_small_ugc_night</item>
<item name="android:indeterminateDrawable">@drawable/rating_bar_small_ugc_night</item>
<item name="android:stepSize">0.01</item>
</style>
<style name="MwmWidget.Counter">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>

View file

@ -81,6 +81,9 @@
<item name="downloaderTheme">@style/MwmTheme.Downloader</item>
<item name="navigationTheme">@style/MwmTheme.Navigation</item>
<item name="ratingBarStyle">@style/MwmWidget.RatingBar.Ugc</item>
<item name="ratingBarStyleSmall">@style/MwmWidget.RatingBarSmall.Ugc</item>
<item name="fabAdd">@drawable/ic_fab_add</item>
<item name="fabViewOnMap">@drawable/ic_fab_view_on_map</item>
@ -296,6 +299,9 @@
<item name="downloaderTheme">@style/MwmTheme.Downloader.Night</item>
<item name="navigationTheme">@style/MwmTheme.Navigation.Night</item>
<item name="ratingBarStyle">@style/MwmWidget.RatingBar.Ugc.Night</item>
<item name="ratingBarStyleSmall">@style/MwmWidget.RatingBarSmall.Ugc.Night</item>
<item name="fabAdd">@drawable/ic_fab_add_night</item>
<item name="fabViewOnMap">@drawable/ic_fab_view_on_map_night</item>