OSDN Git Service

Fix camera facing by querying characteristics
[android-x86/packages-apps-Camera2.git] / res / values-v21 / styles.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2014 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <resources xmlns:android="http://schemas.android.com/apk/res/android">
18     <!-- Camera resources below -->
19
20     <style name="Theme.Camera" parent="android:style/Theme.Material.Light.DarkActionBar">
21         <item name="android:windowFullscreen">true</item>
22         <item name="android:windowActionBar">false</item>
23         <item name="android:windowTitleSize">0dp</item>
24         <item name="android:windowActionBarOverlay">true</item>
25         <!-- for background layout, don't draw background under system bar,
26              reactivate within CameraActivity.onCreate(). -->
27         <item name="android:windowDrawsSystemBarBackgrounds">false</item>
28         <!-- TODO: add background as @drawable/cover after Camera mode cold
29                    start default per b/17702056 -->
30         <item name="android:windowBackground">@color/camera_gray_background</item>
31         <item name="android:colorBackground">@color/camera_gray_background</item>
32         <item name="android:colorBackgroundCacheHint">@color/camera_gray_background</item>
33         <item name="android:actionBarStyle">@style/Camera.ActionBar</item>
34     </style>
35
36     <style name="Camera.ActionBar" parent="android:style/Theme.Material.Light.DarkActionBar">
37         <item name="android:displayOptions">useLogo|showHome|homeAsUp</item>
38         <item name="android:background">@drawable/actionbar_translucent</item>
39         <item name="android:backgroundStacked">@null</item>
40     </style>
41
42     <style name="Theme.CameraSettings" parent="@android:style/Theme.Material.Light.DarkActionBar">
43         <item name="android:windowFullscreen">true</item>
44         <item name="android:colorPrimary">@color/main_color_global</item>
45     </style>
46
47     <style name="FilmstripBottomControlButton">
48         <item name="android:layout_width">@dimen/filmstrip_bottom_control_button_size</item>
49         <item name="android:layout_height">@dimen/filmstrip_bottom_control_button_size</item>
50         <item name="android:background">@drawable/filmstrip_button_background</item>
51         <item name="android:scaleType">centerInside</item>
52         <item name="android:layout_gravity">center_vertical</item>
53     </style>
54
55     <style name="DialogCheckBox">
56         <item name="android:textColor">@color/dialog_text_color</item>
57         <item name="android:buttonTint">@color/dialog_text_color</item>
58         <item name="android:textSize">16sp</item>
59         <item name="android:lineSpacingExtra">1.9sp</item>
60     </style>
61 </resources>