Skip to content

Commit

Permalink
In-app option to give a rating (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanu1k authored Jan 20, 2022
1 parent c9026f4 commit 9c5564d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_baseline_star_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
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"/>
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
<string name="preference_temperature_unit_title">Temperature Unit</string>
<string name="temp_unit_celsius">Celsius/°C</string>
<string name="temp_unit_fahrenheit">Fahrenheit/°F</string>

<string name="rate_app">Rate this app</string>
</resources>
7 changes: 7 additions & 0 deletions app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@
android:key="unit_key" />

</PreferenceCategory>
<Preference
android:title="@string/rate_app"
android:icon="@drawable/ic_baseline_star_24">
<intent
android:action="android.intent.action.VIEW"
android:data="https://play.google.com/store/apps/details?id=com.mayokunadeniyi.instantweather"/>
</Preference>
</PreferenceScreen>

0 comments on commit 9c5564d

Please sign in to comment.