Skip to content

Commit 188e86d

Browse files
author
paolorotolo
committed
Fix App Shortcuts.
1 parent b589f89 commit 188e86d

8 files changed

+110
-15
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<shape android:shape="oval">
5+
<solid android:color="@color/glucosio_fab_HB1AC" />
6+
</shape>
7+
</item>
8+
<item
9+
android:bottom="16dp"
10+
android:drawable="@drawable/ic_add_white_24dp"
11+
android:left="16dp"
12+
android:right="16dp"
13+
android:top="16dp" />
14+
15+
16+
</layer-list>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<shape android:shape="oval">
5+
<solid android:color="@color/glucosio_fab_cholesterol" />
6+
</shape>
7+
</item>
8+
<item
9+
android:bottom="16dp"
10+
android:drawable="@drawable/ic_add_white_24dp"
11+
android:left="16dp"
12+
android:right="16dp"
13+
android:top="16dp" />
14+
</layer-list>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<shape android:shape="oval">
5+
<solid android:color="@color/glucosio_fab_glucose" />
6+
</shape>
7+
</item>
8+
<item
9+
android:bottom="16dp"
10+
android:drawable="@drawable/ic_add_white_24dp"
11+
android:left="16dp"
12+
android:right="16dp"
13+
android:top="16dp" />
14+
</layer-list>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<shape android:shape="oval">
5+
<solid android:color="@color/glucosio_fab_ketones" />
6+
</shape>
7+
</item>
8+
<item
9+
android:bottom="16dp"
10+
android:drawable="@drawable/ic_add_white_24dp"
11+
android:left="16dp"
12+
android:right="16dp"
13+
android:top="16dp" />
14+
</layer-list>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<shape android:shape="oval">
5+
<solid android:color="@color/glucosio_fab_pressure" />
6+
</shape>
7+
</item>
8+
<item
9+
android:bottom="16dp"
10+
android:drawable="@drawable/ic_add_white_24dp"
11+
android:left="16dp"
12+
android:right="16dp"
13+
android:top="16dp" />
14+
</layer-list>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<shape android:shape="oval">
5+
<solid android:color="@color/glucosio_fab_weight" />
6+
</shape>
7+
</item>
8+
<item
9+
android:bottom="16dp"
10+
android:drawable="@drawable/ic_add_white_24dp"
11+
android:left="16dp"
12+
android:right="16dp"
13+
android:top="16dp" />
14+
</layer-list>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="16dp"
3+
android:height="16dp"
4+
android:viewportHeight="24.0"
5+
android:viewportWidth="24.0">
6+
<path
7+
android:fillColor="#FFffffff"
8+
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
9+
</vector>

app/src/main/res/xml/shortcuts.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@
22
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
33
<shortcut
44
android:enabled="true"
5-
android:icon="@drawable/add_circle_glucose"
5+
android:icon="@drawable/add_circle_glucose_shortcut"
66
android:shortcutDisabledMessage="@string/title_activity_add_glucose"
77
android:shortcutId="glucose"
8-
android:shortcutLongLabel="@string/title_activity_add_glucose"
9-
android:shortcutShortLabel="@string/title_activity_add_glucose">
8+
android:shortcutLongLabel="@string/fab_glucose"
9+
android:shortcutShortLabel="@string/fab_glucose">
1010
<intent
1111
android:action="android.intent.action.VIEW"
1212
android:targetClass="org.glucosio.android.activity.AddGlucoseActivity"
1313
android:targetPackage="org.glucosio.android" />
1414
</shortcut>
1515
<shortcut
1616
android:enabled="true"
17-
android:icon="@drawable/add_circle_weight"
18-
android:shortcutDisabledMessage="@string/title_activity_add_weight"
17+
android:icon="@drawable/add_circle_weight_shortcut"
18+
android:shortcutDisabledMessage="@string/fab_weight"
1919
android:shortcutId="weight"
20-
android:shortcutLongLabel="@string/title_activity_add_weight"
21-
android:shortcutShortLabel="@string/title_activity_add_weight">
20+
android:shortcutLongLabel="@string/fab_weight"
21+
android:shortcutShortLabel="@string/fab_weight">
2222
<intent
2323
android:action="android.intent.action.VIEW"
2424
android:targetClass="org.glucosio.android.activity.AddWeightActivity"
2525
android:targetPackage="org.glucosio.android" />
2626
</shortcut>
2727
<shortcut
2828
android:enabled="true"
29-
android:icon="@drawable/add_circle_a1c"
30-
android:shortcutDisabledMessage="@string/title_activity_add_hb1ac"
29+
android:icon="@drawable/add_circle_a1c_shortcut"
30+
android:shortcutDisabledMessage="@string/fab_HB1AC"
3131
android:shortcutId="hb1ac"
32-
android:shortcutLongLabel="@string/title_activity_add_hb1ac"
33-
android:shortcutShortLabel="@string/title_activity_add_hb1ac">
32+
android:shortcutLongLabel="@string/fab_HB1AC"
33+
android:shortcutShortLabel="@string/fab_HB1AC">
3434
<intent
3535
android:action="android.intent.action.VIEW"
3636
android:targetClass="org.glucosio.android.activity.AddA1CActivity"
3737
android:targetPackage="org.glucosio.android" />
3838
</shortcut>
3939
<shortcut
4040
android:enabled="true"
41-
android:icon="@drawable/add_circle_pressure"
42-
android:shortcutDisabledMessage="@string/title_activity_add_pressure"
41+
android:icon="@drawable/add_circle_pressure_shortcut"
42+
android:shortcutDisabledMessage="@string/fab_pressure"
4343
android:shortcutId="pressure"
44-
android:shortcutLongLabel="@string/title_activity_add_pressure"
45-
android:shortcutShortLabel="@string/title_activity_add_pressure">
44+
android:shortcutLongLabel="@string/fab_pressure"
45+
android:shortcutShortLabel="@string/fab_pressure">
4646
<intent
4747
android:action="android.intent.action.VIEW"
4848
android:targetClass="org.glucosio.android.activity.AddPressureActivity"

0 commit comments

Comments
 (0)