Remove bitmap drawables and let Android Studio generate the at buildtime

Tested on virtual Android 8.1, 5.0 and an API Level 14. 14 showed some visual glitches (Some minor parts of the icons are black) - But i think it's a good trade-off. Everything still works.
This commit is contained in:
Niedermann IT-Dienstleistungen 2018-04-12 23:12:34 +02:00
parent cd7e7d445a
commit 9ae9878ac9
21 changed files with 32 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 457 B

View file

@ -0,0 +1,5 @@
<vector android:autoMirrored="true" android:height="24dp"
android:tint="#0082C9" android:viewportHeight="24.0"
android:viewportWidth="24.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF0082C9" android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</vector>

View file

@ -0,0 +1,5 @@
<vector android:autoMirrored="true" android:height="24dp"
android:tint="#FFFFFF" android:viewportHeight="24.0"
android:viewportWidth="24.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FFFFFFFF" android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</vector>

View file

@ -0,0 +1,5 @@
<vector android:autoMirrored="true" android:height="24dp"
android:tint="#FFFFFF" android:viewportHeight="24.0"
android:viewportWidth="24.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FFFFFFFF" android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z"/>
</vector>

View file

@ -0,0 +1,5 @@
<vector android:autoMirrored="true" android:height="32dp"
android:tint="#FFFFFF" android:viewportHeight="24.0"
android:viewportWidth="24.0" android:width="32dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FFFFFFFF" android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z"/>
</vector>

View file

@ -39,7 +39,7 @@
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab_create"
style="@style/fab"
android:src="@drawable/ic_action_new"
android:src="@drawable/ic_add_white_24dp"
app:backgroundTint="@color/primary"
app:rippleColor="@color/primary_dark" />
</android.support.design.widget.CoordinatorLayout>

View file

@ -6,23 +6,23 @@
<ImageView
android:id="@+id/noteDeleteLeft"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/button_padding"
android:layout_marginStart="@dimen/button_padding"
android:contentDescription="@string/menu_delete"
android:src="@drawable/ic_action_delete" />
android:src="@drawable/ic_delete_white_32dp" />
<ImageView
android:id="@+id/noteDeleteRight"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|center_vertical"
android:layout_marginEnd="@dimen/button_padding"
android:layout_marginRight="@dimen/button_padding"
android:contentDescription="@string/menu_delete"
android:src="@drawable/ic_action_delete" />
android:src="@drawable/ic_delete_white_32dp" />
<android.support.v7.widget.LinearLayoutCompat
android:id="@+id/noteSwipeable"

View file

@ -46,7 +46,7 @@
android:id="@+id/widget_note_list_create_icon"
android:layout_width="@dimen/widget_note_list_icon_width"
android:layout_height="match_parent"
android:src="@drawable/ic_action_new"
android:src="@drawable/ic_add_white_24dp"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:paddingStart="@dimen/widget_note_list_inner_padding"

View file

@ -4,7 +4,7 @@
<item
android:id="@+id/menu_delete"
android:icon="@drawable/ic_action_delete"
android:icon="@drawable/ic_delete_white_24dp"
android:orderInCategory="100"
android:title="@string/menu_delete"
app:showAsAction="ifRoom" />

View file

@ -16,7 +16,7 @@
app:showAsAction="ifRoom" />
<item
android:id="@+id/menu_delete"
android:icon="@drawable/ic_action_delete"
android:icon="@drawable/ic_delete_white_24dp"
android:orderInCategory="100"
android:title="@string/menu_delete"
app:showAsAction="ifRoom" />

View file

@ -28,7 +28,7 @@
app:showAsAction="never" />
<item
android:id="@+id/menu_delete"
android:icon="@drawable/ic_action_delete"
android:icon="@drawable/ic_delete_white_24dp"
android:orderInCategory="120"
android:title="@string/menu_delete"
app:showAsAction="never" />

View file

@ -3,7 +3,7 @@
<shortcut
android:shortcutId="it.niedermann.owncloud.notes"
android:enabled="true"
android:icon="@drawable/ic_action_new_theme"
android:icon="@drawable/ic_add_blue_24dp"
android:shortcutShortLabel="@string/action_create"
android:shortcutLongLabel="@string/shortcut_create_long">
<intent