MainActivity: put freeze all on action bar

This commit is contained in:
Peter Cai 2018-08-23 20:00:13 +08:00
parent cbd6bba350
commit da8756cfc7
No known key found for this signature in database
GPG key ID: 71F5FB4E4F3FD54F
2 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:tint="@color/colorAccent"
android:width="108dp"
android:height="108dp"
android:viewportWidth="166.4972"
android:viewportHeight="166.50017">
<group android:translateX="48.54559"
android:translateY="48.546585">
<path
android:pathData="M32.949,34.211H3.841c-1.139,0 -2.164,-0.687 -2.598,-1.741c-0.43,-1.053 -0.178,-2.251 0.629,-3.054L26.1,5.604H3.841c-1.55,0 -2.802,-1.267 -2.802,-2.802C1.04,1.248 2.292,0 3.841,0h29.108c1.137,0 2.164,0.689 2.593,1.743c0.432,1.053 0.18,2.252 -0.627,3.053L10.687,28.61h22.263c1.545,0 2.802,1.261 2.802,2.802C35.751,32.963 34.49,34.211 32.949,34.211zM65.562,39.967H51.849l15.688,-15.42c0.812,-0.807 1.051,-2 0.63,-3.053c-0.43,-1.053 -1.466,-1.747 -2.604,-1.747H44.995c-1.538,0 -2.802,1.255 -2.802,2.801c0,1.535 1.264,2.802 2.802,2.802h13.721L43.027,40.766c-0.818,0.81 -1.058,1.998 -0.627,3.054c0.434,1.062 1.456,1.751 2.595,1.751h20.566c1.549,0 2.802,-1.259 2.802,-2.802C68.363,41.225 67.11,39.967 65.562,39.967zM33.935,63.804h-9.565L35.9,52.477c0.814,-0.799 1.06,-2.009 0.63,-3.063c-0.432,-1.052 -1.459,-1.741 -2.596,-1.741H17.524c-1.547,0 -2.803,1.258 -2.803,2.802c0,1.542 1.256,2.802 2.803,2.802h9.565L15.557,64.602c-0.812,0.81 -1.06,1.998 -0.627,3.054c0.431,1.056 1.456,1.751 2.595,1.751h16.411c1.547,0 2.801,-1.259 2.801,-2.802S35.494,63.804 33.935,63.804z"
android:fillColor="#FFFFFF"/>
</group>
</vector>

View file

@ -1,8 +1,11 @@
<?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"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/main_menu_freeze_all"
android:title="@string/freeze_all" />
android:icon="@drawable/ic_freeze_tinted"
android:title="@string/freeze_all"
app:showAsAction="ifRoom" />
<item
android:id="@+id/main_menu_create_freeze_all_shortcut"