diff options
author | Chung-yih Wang <cywang@google.com> | 2011-09-21 11:56:31 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2011-09-22 02:10:08 +0800 |
commit | 606093cd434a89f5ca941d3a6d6e8470eb768c67 (patch) | |
tree | 0fee2c946b1693aff799d950c7d81f0e26e3c056 /res/drawable | |
parent | 9e9aff5145a9c3e1e4e99fbd779cd3b9b3c20848 (diff) | |
download | LegacyCamera-606093cd434a89f5ca941d3a6d6e8470eb768c67.zip LegacyCamera-606093cd434a89f5ca941d3a6d6e8470eb768c67.tar.gz LegacyCamera-606093cd434a89f5ca941d3a6d6e8470eb768c67.tar.bz2 |
Fix the zoom control bar UI on phone.
+use drawable selector to activate/deactivate the zoom control bar
+update/add zoom assets
Change-Id: Ie429dd0d78c562c8d1045280f336ae74ea6ce898
Diffstat (limited to 'res/drawable')
-rw-r--r-- | res/drawable/ic_zoom_in.xml | 21 | ||||
-rw-r--r-- | res/drawable/ic_zoom_out.xml | 21 | ||||
-rw-r--r-- | res/drawable/zoom_slider_bar.xml | 21 |
3 files changed, 63 insertions, 0 deletions
diff --git a/res/drawable/ic_zoom_in.xml b/res/drawable/ic_zoom_in.xml new file mode 100644 index 0000000..7ba87ae --- /dev/null +++ b/res/drawable/ic_zoom_in.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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_activated="true" android:drawable="@drawable/ic_zoom_in_holo_light" /> + <item android:drawable="@drawable/ic_zoom_in_holo_dark" /> +</selector> + diff --git a/res/drawable/ic_zoom_out.xml b/res/drawable/ic_zoom_out.xml new file mode 100644 index 0000000..1d46cbc --- /dev/null +++ b/res/drawable/ic_zoom_out.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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_activated="true" android:drawable="@drawable/ic_zoom_out_holo_light" /> + <item android:drawable="@drawable/ic_zoom_out_holo_dark" /> +</selector> + diff --git a/res/drawable/zoom_slider_bar.xml b/res/drawable/zoom_slider_bar.xml new file mode 100644 index 0000000..234fd0f --- /dev/null +++ b/res/drawable/zoom_slider_bar.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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_activated="true" android:drawable="@drawable/ic_zoom_big" /> + <item android:drawable="@drawable/ic_zoom_big_dark" /> +</selector> + |