Skip to content

Commit 9c5564d

Browse files
authored
In-app option to give a rating (#45)
1 parent c9026f4 commit 9c5564d

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24"
5+
android:viewportHeight="24"
6+
android:tint="?attr/colorControlNormal">
7+
<path
8+
android:fillColor="@android:color/white"
9+
android:pathData="M12,17.27L18.18,21l-1.64,-7.03L22,9.24l-7.19,-0.61L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21z"/>
10+
</vector>

app/src/main/res/values/strings.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@
5656
<string name="preference_temperature_unit_title">Temperature Unit</string>
5757
<string name="temp_unit_celsius">Celsius/°C</string>
5858
<string name="temp_unit_fahrenheit">Fahrenheit/°F</string>
59-
59+
<string name="rate_app">Rate this app</string>
6060
</resources>

app/src/main/res/xml/preferences.xml

+7
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,11 @@
3737
android:key="unit_key" />
3838

3939
</PreferenceCategory>
40+
<Preference
41+
android:title="@string/rate_app"
42+
android:icon="@drawable/ic_baseline_star_24">
43+
<intent
44+
android:action="android.intent.action.VIEW"
45+
android:data="https://play.google.com/store/apps/details?id=com.mayokunadeniyi.instantweather"/>
46+
</Preference>
4047
</PreferenceScreen>

0 commit comments

Comments
 (0)