OSDN Git Service

DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
[android-x86/frameworks-base.git] / packages / SystemUI / res / layout / screen_pinning_request_buttons.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /**
4  * Copyright (c) 2014, The Android Open Source Project
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 -->
19 <!--
20      This layout matches the structure of navigation_bar.xml and will need
21      to be kept up to sync with changes there.
22      On sw600dp, dimensions are changed to be large enough such that the
23      empty views between the buttons is reduced to nothing, if (nav bar)
24      sw600dp layout is changed then this will likely have to be adjusted
25      and possibly need a sw600dp specific one.
26 -->
27 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
28     android:id="@+id/screen_pinning_buttons"
29     android:layout_width="match_parent"
30     android:layout_height="@dimen/screen_pinning_request_button_height"
31     android:background="?android:attr/colorAccent">
32
33     <View
34         android:layout_width="@dimen/screen_pinning_request_side_width"
35         android:layout_height="match_parent"
36         android:layout_weight="0"
37         android:visibility="invisible" />
38
39     <FrameLayout
40         android:id="@+id/screen_pinning_back_group"
41         android:layout_width="@dimen/screen_pinning_request_button_width"
42         android:layout_height="@dimen/screen_pinning_request_button_height"
43         android:layout_weight="0"
44         android:paddingStart="@dimen/screen_pinning_request_frame_padding"
45         android:paddingEnd="@dimen/screen_pinning_request_frame_padding"
46         android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent">
47
48         <ImageView
49             android:id="@+id/screen_pinning_back_bg_light"
50             android:layout_width="match_parent"
51             android:layout_height="match_parent"
52             android:scaleType="matrix"
53             android:src="@drawable/screen_pinning_light_bg_circ" />
54
55         <ImageView
56             android:id="@+id/screen_pinning_back_bg"
57             android:layout_width="match_parent"
58             android:layout_height="match_parent"
59             android:paddingEnd="@dimen/screen_pinning_request_inner_padding"
60             android:paddingStart="@dimen/screen_pinning_request_inner_padding"
61             android:paddingTop="@dimen/screen_pinning_request_inner_padding"
62             android:scaleType="matrix"
63             android:src="@drawable/screen_pinning_bg_circ" />
64
65         <ImageView
66             android:layout_width="match_parent"
67             android:layout_height="match_parent"
68             android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
69             android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
70             android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
71             android:scaleType="center"
72             android:src="@drawable/ic_sysbar_back" />
73     </FrameLayout>
74
75     <View
76         android:layout_width="match_parent"
77         android:layout_height="match_parent"
78         android:layout_weight="1"
79         android:visibility="invisible" />
80
81     <FrameLayout
82         android:id="@+id/screen_pinning_home_group"
83         android:layout_width="@dimen/screen_pinning_request_button_width"
84         android:layout_height="@dimen/screen_pinning_request_button_height"
85         android:layout_weight="0"
86         android:paddingStart="@dimen/screen_pinning_request_frame_padding"
87         android:paddingEnd="@dimen/screen_pinning_request_frame_padding" >
88
89         <ImageView
90             android:layout_width="match_parent"
91             android:layout_height="match_parent"
92             android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
93             android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
94             android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
95             android:scaleType="center"
96             android:src="@drawable/ic_sysbar_home" />
97     </FrameLayout>
98
99     <View
100         android:layout_width="match_parent"
101         android:layout_height="match_parent"
102         android:layout_weight="1"
103         android:visibility="invisible" />
104
105     <FrameLayout
106         android:id="@+id/screen_pinning_recents_group"
107         android:layout_width="@dimen/screen_pinning_request_button_width"
108         android:layout_height="@dimen/screen_pinning_request_button_height"
109         android:layout_weight="0"
110         android:paddingStart="@dimen/screen_pinning_request_frame_padding"
111         android:paddingEnd="@dimen/screen_pinning_request_frame_padding" >
112
113         <ImageView
114             android:layout_width="match_parent"
115             android:layout_height="match_parent"
116             android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
117             android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
118             android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
119             android:scaleType="center"
120             android:src="@drawable/ic_sysbar_recent" />
121     </FrameLayout>
122
123     <View
124         android:layout_width="@dimen/screen_pinning_request_side_width"
125         android:layout_height="match_parent"
126         android:layout_weight="0"
127         android:visibility="invisible" />
128
129 </LinearLayout>