[android] Night mode in rating bar.
Before Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 503 B |
BIN
android/res/drawable-hdpi/ic_review_active_12.png
Normal file
After Width: | Height: | Size: 435 B |
BIN
android/res/drawable-hdpi/ic_review_active_24.png
Normal file
After Width: | Height: | Size: 666 B |
BIN
android/res/drawable-hdpi/ic_review_disable_dark_12.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
android/res/drawable-hdpi/ic_review_disable_dark_24.png
Normal file
After Width: | Height: | Size: 603 B |
BIN
android/res/drawable-hdpi/ic_review_disable_light_12.png
Normal file
After Width: | Height: | Size: 401 B |
BIN
android/res/drawable-hdpi/ic_review_disable_light_24.png
Normal file
After Width: | Height: | Size: 589 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 354 B |
BIN
android/res/drawable-mdpi/ic_review_active_12.png
Normal file
After Width: | Height: | Size: 353 B |
BIN
android/res/drawable-mdpi/ic_review_active_24.png
Normal file
After Width: | Height: | Size: 513 B |
BIN
android/res/drawable-mdpi/ic_review_disable_dark_12.png
Normal file
After Width: | Height: | Size: 288 B |
BIN
android/res/drawable-mdpi/ic_review_disable_dark_24.png
Normal file
After Width: | Height: | Size: 440 B |
BIN
android/res/drawable-mdpi/ic_review_disable_light_12.png
Normal file
After Width: | Height: | Size: 301 B |
BIN
android/res/drawable-mdpi/ic_review_disable_light_24.png
Normal file
After Width: | Height: | Size: 429 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 611 B |
BIN
android/res/drawable-xhdpi/ic_review_active_12.png
Normal file
After Width: | Height: | Size: 559 B |
BIN
android/res/drawable-xhdpi/ic_review_active_24.png
Normal file
After Width: | Height: | Size: 863 B |
BIN
android/res/drawable-xhdpi/ic_review_disable_dark_12.png
Normal file
After Width: | Height: | Size: 469 B |
BIN
android/res/drawable-xhdpi/ic_review_disable_dark_24.png
Normal file
After Width: | Height: | Size: 737 B |
BIN
android/res/drawable-xhdpi/ic_review_disable_light_12.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
android/res/drawable-xhdpi/ic_review_disable_light_24.png
Normal file
After Width: | Height: | Size: 741 B |
Before Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 605 B |
Before Width: | Height: | Size: 944 B |
BIN
android/res/drawable-xxhdpi/ic_review_active_12.png
Normal file
After Width: | Height: | Size: 759 B |
BIN
android/res/drawable-xxhdpi/ic_review_active_24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
android/res/drawable-xxhdpi/ic_review_disable_dark_12.png
Normal file
After Width: | Height: | Size: 649 B |
BIN
android/res/drawable-xxhdpi/ic_review_disable_dark_24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
android/res/drawable-xxhdpi/ic_review_disable_light_12.png
Normal file
After Width: | Height: | Size: 648 B |
BIN
android/res/drawable-xxhdpi/ic_review_disable_light_24.png
Normal file
After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 445 B |
Before Width: | Height: | Size: 698 B |
Before Width: | Height: | Size: 768 B |
Before Width: | Height: | Size: 1.1 KiB |
BIN
android/res/drawable-xxxhdpi/ic_review_active_12.png
Normal file
After Width: | Height: | Size: 971 B |
BIN
android/res/drawable-xxxhdpi/ic_review_active_24.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
android/res/drawable-xxxhdpi/ic_review_disable_dark_12.png
Normal file
After Width: | Height: | Size: 815 B |
BIN
android/res/drawable-xxxhdpi/ic_review_disable_dark_24.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
android/res/drawable-xxxhdpi/ic_review_disable_light_12.png
Normal file
After Width: | Height: | Size: 827 B |
BIN
android/res/drawable-xxxhdpi/ic_review_disable_light_24.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
|
@ -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>
|
||||
|
|
9
android/res/drawable/rating_bar_small_ugc_night.xml
Normal 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>
|
|
@ -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>
|
||||
|
|
9
android/res/drawable/rating_bar_ugc_night.xml
Normal 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>
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|