diff options
author | nicolasroard <nicolasroard@google.com> | 2012-09-28 16:03:21 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2012-09-28 16:12:04 -0700 |
commit | ec9611c06884fe91a77e4159bb01ade3f63fa100 (patch) | |
tree | 44e60dadb60f8dc9bc2fd2d9a01441d294b0c3f4 /res | |
parent | 9fa1b8fabcc52a077abb2b5667699be59291fd7b (diff) | |
download | android_packages_apps_Snap-ec9611c06884fe91a77e4159bb01ade3f63fa100.tar.gz android_packages_apps_Snap-ec9611c06884fe91a77e4159bb01ade3f63fa100.tar.bz2 android_packages_apps_Snap-ec9611c06884fe91a77e4159bb01ade3f63fa100.zip |
Improve ActionBar
- show both undo and redo
- add the checkmark with done instead of the up mark
bug:7233986
Change-Id: I32af8068b08763461b720054f270cb6acabefbbf
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/filtershow_actionbar.xml | 25 | ||||
-rw-r--r-- | res/menu/filtershow_activity_menu.xml | 6 |
2 files changed, 28 insertions, 3 deletions
diff --git a/res/layout/filtershow_actionbar.xml b/res/layout/filtershow_actionbar.xml new file mode 100644 index 000000000..064b0e6a9 --- /dev/null +++ b/res/layout/filtershow_actionbar.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2012 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:background="@drawable/filtershow_button_background" + android:id="@+id/filtershow_done" + android:text="@string/done" + android:gravity="center_vertical" + android:textSize="18dip" + android:drawableLeft="?android:attr/actionModeCloseDrawable" />
\ No newline at end of file diff --git a/res/menu/filtershow_activity_menu.xml b/res/menu/filtershow_activity_menu.xml index ba0a8bcf4..f0c0f3247 100644 --- a/res/menu/filtershow_activity_menu.xml +++ b/res/menu/filtershow_activity_menu.xml @@ -2,18 +2,18 @@ <item android:id="@+id/menu_share" android:actionProviderClass="android.widget.ShareActionProvider" - android:showAsAction="ifRoom" + android:showAsAction="always" android:enabled="false" android:title="@string/share"/> <item android:id="@+id/undoButton" android:icon="@drawable/filtershow_button_undo" - android:showAsAction="ifRoom" + android:showAsAction="always" android:title="@string/filtershow_undo"/> <item android:id="@+id/redoButton" android:icon="@drawable/filtershow_button_redo" - android:showAsAction="ifRoom" + android:showAsAction="always" android:title="@string/filtershow_redo"/> <item android:id="@+id/operationsButton" |