Remove bitmap drawables and let Android Studio generate the at build time
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.
|
@ -192,7 +192,7 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap
|
|||
}
|
||||
|
||||
private void setupNavigationList(final String selectedItem) {
|
||||
itemRecent = new NavigationAdapter.NavigationItem(ADAPTER_KEY_RECENT, getString(R.string.label_all_notes), null, R.drawable.ic_clock_grey600_24dp);
|
||||
itemRecent = new NavigationAdapter.NavigationItem(ADAPTER_KEY_RECENT, getString(R.string.label_all_notes), null, R.drawable.ic_access_time_grey600_24dp);
|
||||
itemFavorites = new NavigationAdapter.NavigationItem(ADAPTER_KEY_STARRED, getString(R.string.label_favorites), null, R.drawable.ic_star_grey600_24dp);
|
||||
adapterCategories = new NavigationAdapter(new NavigationAdapter.ClickListener() {
|
||||
@Override
|
||||
|
|
Before Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 980 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 306 B |
Before Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 519 B |
Before Width: | Height: | Size: 355 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 834 B |
Before Width: | Height: | Size: 732 B |
Before Width: | Height: | Size: 522 B |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1,002 B |
Before Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.4 KiB |
|
@ -0,0 +1,5 @@
|
|||
<vector android:autoMirrored="true" android:height="24dp"
|
||||
android:tint="#757575" android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FF000000" android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8zM12.5,7H11v6l5.25,3.15 0.75,-1.23 -4.5,-2.67z"/>
|
||||
</vector>
|
5
app/src/main/res/drawable/ic_clear_white_24dp.xml
Normal 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="#FF000000" android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
|
||||
</vector>
|
5
app/src/main/res/drawable/ic_share_white_24dp.xml
Normal 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="#FF000000" android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
|
||||
</vector>
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
<item
|
||||
android:id="@+id/menu_edit"
|
||||
android:icon="@drawable/ic_action_edit"
|
||||
android:icon="@drawable/ic_edit_white_24dp"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/simple_edit"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_share"
|
||||
android:actionProviderClass="android.widget.ShareActionProvider"
|
||||
android:icon="@drawable/ic_action_share"
|
||||
android:icon="@drawable/ic_share_white_24dp"
|
||||
android:title="@string/menu_share"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_create_cancel"
|
||||
android:icon="@drawable/ic_action_cancel"
|
||||
android:orderInCategory="90"
|
||||
android:title="@string/simple_cancel"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_create_save"
|
||||
android:icon="@drawable/ic_action_done"
|
||||
android:orderInCategory="90"
|
||||
android:title="@string/action_create_save"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
|
@ -14,14 +14,14 @@
|
|||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_share"
|
||||
android:icon="@drawable/ic_action_share"
|
||||
android:icon="@drawable/ic_share_white_24dp"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/menu_share"
|
||||
app:showAsAction="never"
|
||||
app:actionProviderClass="android.support.v7.widget.ShareActionProvider" />
|
||||
<item
|
||||
android:id="@+id/menu_cancel"
|
||||
android:icon="@drawable/ic_action_cancel"
|
||||
android:icon="@drawable/ic_clear_white_24dp"
|
||||
android:orderInCategory="110"
|
||||
android:title="@string/simple_cancel"
|
||||
app:showAsAction="never" />
|
||||
|
|