diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-05-21 15:44:54 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-05-23 12:27:21 +0800 |
commit | e2369594edd68180b5820afdd33a274a7e7a7f4a (patch) | |
tree | 5b2f89608509a9aa73f17d40718c3de7a05f75db /res/drawable-sw485dp/btn_zoom_in.xml | |
parent | e2eebff5a84e6981d81d0a9ac28322867099b295 (diff) | |
download | packages_apps_LegacyCamera-e2369594edd68180b5820afdd33a274a7e7a7f4a.zip packages_apps_LegacyCamera-e2369594edd68180b5820afdd33a274a7e7a7f4a.tar.gz packages_apps_LegacyCamera-e2369594edd68180b5820afdd33a274a7e7a7f4a.tar.bz2 |
Move layout and resource to sw485dp.
Camera app has phone UI and tablet UI. Phone UI can be used
by one hand in portrait mode. So all the controls are on the
same side. The maximum size that can be comfortablely used
by one hand is around 480dp. If both sides of the screen are
bigger than 480dp, the app will use tablet UI. Use sw485dp to
make sure 640x480dp use phone UI.
Also remove some hard-coded values in xlarge layout.
bug:4473360
Change-Id: I8a1dafaee84594b84a81f21f05c2568e5f7d324d
Diffstat (limited to 'res/drawable-sw485dp/btn_zoom_in.xml')
-rw-r--r-- | res/drawable-sw485dp/btn_zoom_in.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/res/drawable-sw485dp/btn_zoom_in.xml b/res/drawable-sw485dp/btn_zoom_in.xml new file mode 100644 index 0000000..d798b5a --- /dev/null +++ b/res/drawable-sw485dp/btn_zoom_in.xml @@ -0,0 +1,21 @@ +<?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_pressed="true" android:drawable="@drawable/button_zoom_in_pressed_holo" /> + <item android:state_enabled="false" android:drawable="@drawable/button_zoom_in_disabled_holo" /> + <item android:drawable="@drawable/button_zoom_in_holo" /> +</selector> |