diff options
author | Doris Liu <tianliu@google.com> | 2013-11-09 19:13:44 -0800 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2013-11-12 18:56:55 -0800 |
commit | 1c94b7d0fa0143230d04b9f14c2ff93c6886d6cc (patch) | |
tree | f56d9c734fb647e9d2ffbf3ececf9f8f42a01d57 /res/layout/mode_selector.xml | |
parent | 15c3c9e8dd4e32fe7439bd14542ca4e7cc96b506 (diff) | |
download | android_packages_apps_Camera2-1c94b7d0fa0143230d04b9f14c2ff93c6886d6cc.tar.gz android_packages_apps_Camera2-1c94b7d0fa0143230d04b9f14c2ff93c6886d6cc.tar.bz2 android_packages_apps_Camera2-1c94b7d0fa0143230d04b9f14c2ff93c6886d6cc.zip |
Introduce new mode switcher
TODO: Get assets from UX and activate shimmy
Bug: 11514368
Change-Id: Iebfd3c3c2dc1b08db25e166d5f90d3418a67ed22
Diffstat (limited to 'res/layout/mode_selector.xml')
-rw-r--r-- | res/layout/mode_selector.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/res/layout/mode_selector.xml b/res/layout/mode_selector.xml new file mode 100644 index 000000000..c9d937535 --- /dev/null +++ b/res/layout/mode_selector.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> + +<com.android.camera.ui.ModeSelectorItem + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <TextView + android:id="@+id/selector_text" + android:layout_gravity="left" + android:paddingLeft="24dp" + android:paddingRight="24dp" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_vertical" + android:textSize="21sp" + android:textColor="@color/mode_selector_text_color" + android:layout_marginLeft="@dimen/mode_selector_icon_block_width" /> + <ImageView + android:id="@+id/selector_icon" + android:scaleType="centerInside" + android:layout_width="@dimen/mode_selector_icon_block_width" + android:layout_height="match_parent" /> +</com.android.camera.ui.ModeSelectorItem>
\ No newline at end of file |