Skip to content

Commit

Permalink
Added adaptive icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Faltenreich committed May 11, 2018
1 parent 656f8a3 commit 4a35f50
Show file tree
Hide file tree
Showing 22 changed files with 21 additions and 5 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Diaguard/src/beta/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>

<color name="primary">@color/blue</color>

</resources>
5 changes: 3 additions & 2 deletions Diaguard/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
<application
android:name=".DiaguardApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<receiver android:name=".util.AlarmBroadcastReceiver" />

<activity
android:name=".ui.activity.MainActivity"
Expand Down Expand Up @@ -96,6 +95,8 @@
android:resource="@xml/provider_paths"/>
</provider>

<receiver android:name=".util.AlarmBroadcastReceiver" />

<service
android:name=".networking.openfoodfacts.OpenFoodFactsService"
android:exported="false" />
Expand Down
Binary file removed Diaguard/src/main/res/drawable-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed Diaguard/src/main/res/drawable-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed Diaguard/src/main/res/drawable-xhdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 1 addition & 2 deletions Diaguard/src/main/res/menu/navigation.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>

<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<menu xmlns:android="http://schemas.android.com/apk/res/android">

<group
android:id="@+id/fragments"
Expand Down
8 changes: 8 additions & 0 deletions Diaguard/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">

<background android:drawable="@color/primary"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>

</adaptive-icon>
Binary file added Diaguard/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Diaguard/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Diaguard/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<resources>

<color name="primary">@color/green</color>
<color name="translucent_scrim_end">#58000000</color>
<color name="translucent_scrim_center">#3F000000</color>

Expand Down

0 comments on commit 4a35f50

Please sign in to comment.