diff options
author | Doris Liu <tianliu@google.com> | 2012-10-29 13:11:10 -0700 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2012-10-29 13:39:06 -0700 |
commit | 87f2a4daff6a472051326e9488cce589d7960a40 (patch) | |
tree | d848b843c94379175ad1793a8e5f72075fd15076 /res | |
parent | 7cd69693797fc83ebd4f13607aac72c27bbe49ee (diff) | |
download | android_packages_apps_Snap-87f2a4daff6a472051326e9488cce589d7960a40.tar.gz android_packages_apps_Snap-87f2a4daff6a472051326e9488cce589d7960a40.tar.bz2 android_packages_apps_Snap-87f2a4daff6a472051326e9488cce589d7960a40.zip |
Disable save button when there's no modification
Bug: 7353884
Change-Id: I1b88e8b8ab3a92aad1226c60062a17a2f4badfb9
Diffstat (limited to 'res')
-rwxr-xr-x | res/drawable-hdpi/ic_menu_savephoto_disabled.png | bin | 0 -> 1434 bytes | |||
-rwxr-xr-x | res/drawable-mdpi/ic_menu_savephoto_disabled.png | bin | 0 -> 1033 bytes | |||
-rwxr-xr-x | res/drawable-xhdpi/ic_menu_savephoto_disabled.png | bin | 0 -> 1912 bytes | |||
-rw-r--r-- | res/drawable/menu_save_photo.xml | 20 | ||||
-rw-r--r-- | res/layout/filtershow_actionbar.xml | 2 | ||||
-rw-r--r-- | res/layout/trim_menu.xml | 2 |
6 files changed, 22 insertions, 2 deletions
diff --git a/res/drawable-hdpi/ic_menu_savephoto_disabled.png b/res/drawable-hdpi/ic_menu_savephoto_disabled.png Binary files differnew file mode 100755 index 000000000..afb34ec7a --- /dev/null +++ b/res/drawable-hdpi/ic_menu_savephoto_disabled.png diff --git a/res/drawable-mdpi/ic_menu_savephoto_disabled.png b/res/drawable-mdpi/ic_menu_savephoto_disabled.png Binary files differnew file mode 100755 index 000000000..dc9b406b6 --- /dev/null +++ b/res/drawable-mdpi/ic_menu_savephoto_disabled.png diff --git a/res/drawable-xhdpi/ic_menu_savephoto_disabled.png b/res/drawable-xhdpi/ic_menu_savephoto_disabled.png Binary files differnew file mode 100755 index 000000000..fab1c5582 --- /dev/null +++ b/res/drawable-xhdpi/ic_menu_savephoto_disabled.png diff --git a/res/drawable/menu_save_photo.xml b/res/drawable/menu_save_photo.xml new file mode 100644 index 000000000..0b92ac968 --- /dev/null +++ b/res/drawable/menu_save_photo.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_enabled="true" android:drawable="@drawable/ic_menu_savephoto" /> + <item android:state_enabled="false" android:drawable="@drawable/ic_menu_savephoto_disabled" /> +</selector> diff --git a/res/layout/filtershow_actionbar.xml b/res/layout/filtershow_actionbar.xml index 93c8c595d..5f0aa3ff6 100644 --- a/res/layout/filtershow_actionbar.xml +++ b/res/layout/filtershow_actionbar.xml @@ -23,5 +23,5 @@ android:text="@string/save" android:gravity="center_vertical" android:textSize="14sp" - android:drawableLeft="@drawable/ic_menu_savephoto" + android:drawableLeft="@drawable/menu_save_photo" android:drawablePadding="8dip" />
\ No newline at end of file diff --git a/res/layout/trim_menu.xml b/res/layout/trim_menu.xml index b61922083..e2333921a 100644 --- a/res/layout/trim_menu.xml +++ b/res/layout/trim_menu.xml @@ -27,6 +27,6 @@ android:textAllCaps="true" android:textSize="14sp" android:gravity="left|center_vertical" - android:drawableLeft="@drawable/ic_menu_savephoto" + android:drawableLeft="@drawable/menu_save_photo" android:drawablePadding="8dp" /> </FrameLayout> |