OSDN Git Service

741c379430e549774e1c16912ca4eca5ee82d3df
[android-x86/packages-apps-Taskbar.git] / app / src / main / res / layout / tb_taskbar_top_vertical.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2016 Braden Farmer
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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18     android:layout_width="wrap_content"
19     android:layout_height="wrap_content"
20     android:orientation="vertical" >
21
22     <LinearLayout android:layout_width="@dimen/tb_icon_size"
23                   android:layout_height="24dp"
24                   android:layout_gravity="center_horizontal"
25                   android:clickable="true"
26                   android:id="@+id/hide_taskbar_button_layout_alt" >
27
28         <Button
29             android:layout_width="24dp"
30             android:layout_height="24dp"
31             android:layout_marginLeft="21dp"
32             android:textSize="20dp"
33             android:background="@null"
34             android:rotation="90"
35             android:id="@+id/hide_taskbar_button_alt" />
36
37     </LinearLayout>
38
39     <Space
40         android:id="@+id/space_alt"
41         android:layout_height="4dp"
42         android:layout_width="match_parent" />
43
44     <ImageView
45         android:id="@+id/start_button"
46         android:layout_width="@dimen/tb_icon_size"
47         android:layout_height="@dimen/tb_icon_size" />
48
49     <FrameLayout
50         android:orientation="vertical"
51         android:id="@+id/dashboard_button"
52         android:layout_height="40dp"
53         android:layout_width="@dimen/tb_icon_size"
54         android:layout_marginBottom="8dp">
55
56         <LinearLayout
57             android:orientation="vertical"
58             android:layout_width="wrap_content"
59             android:layout_height="wrap_content"
60             android:layout_gravity="center">
61
62             <LinearLayout
63                 android:orientation="horizontal"
64                 android:layout_width="wrap_content"
65                 android:layout_height="wrap_content" >
66
67                 <View
68                     android:id="@+id/square1"
69                     android:layout_width="8dp"
70                     android:layout_height="12dp"
71                     android:layout_margin="1dp"/>
72
73                 <View
74                     android:id="@+id/square2"
75                     android:layout_width="8dp"
76                     android:layout_height="12dp"
77                     android:layout_margin="1dp"/>
78
79                 <View
80                     android:id="@+id/square3"
81                     android:layout_width="8dp"
82                     android:layout_height="12dp"
83                     android:layout_margin="1dp"/>
84
85             </LinearLayout>
86
87             <LinearLayout
88                 android:orientation="horizontal"
89                 android:layout_width="wrap_content"
90                 android:layout_height="wrap_content" >
91
92                 <View
93                     android:id="@+id/square4"
94                     android:layout_width="8dp"
95                     android:layout_height="12dp"
96                     android:layout_margin="1dp"/>
97
98                 <View
99                     android:id="@+id/square5"
100                     android:layout_width="8dp"
101                     android:layout_height="12dp"
102                     android:layout_margin="1dp"/>
103
104                 <View
105                     android:id="@+id/square6"
106                     android:layout_width="8dp"
107                     android:layout_height="12dp"
108                     android:layout_margin="1dp"/>
109
110             </LinearLayout>
111
112         </LinearLayout>
113
114     </FrameLayout>
115
116     <LinearLayout
117         android:id="@+id/navbar_buttons"
118         android:layout_height="wrap_content"
119         android:layout_width="match_parent"
120         android:layout_marginBottom="8dp"
121         android:orientation="vertical">
122
123         <ImageView
124             android:id="@+id/button_back"
125             android:layout_height="@dimen/tb_icon_size"
126             android:layout_width="match_parent"
127             android:src="@drawable/tb_sysbar_back"
128             android:scaleType="center"
129             android:visibility="gone" />
130
131         <ImageView
132             android:id="@+id/button_home"
133             android:layout_height="@dimen/tb_icon_size"
134             android:layout_width="match_parent"
135             android:src="@drawable/tb_sysbar_home"
136             android:scaleType="center"
137             android:visibility="gone" />
138
139         <ImageView
140             android:id="@+id/button_recents"
141             android:layout_height="@dimen/tb_icon_size"
142             android:layout_width="match_parent"
143             android:src="@drawable/tb_sysbar_recent"
144             android:scaleType="center"
145             android:visibility="gone" />
146
147     </LinearLayout>
148
149     <ScrollView
150         android:id="@+id/taskbar_scrollview"
151         android:layout_width="@dimen/tb_icon_size"
152         android:layout_height="wrap_content"
153         android:scrollbars="none"
154         android:requiresFadingEdge="vertical"
155         android:visibility="gone" >
156
157         <LinearLayout
158             android:layout_width="wrap_content"
159             android:layout_height="wrap_content"
160             android:orientation="vertical"
161             android:clickable="false">
162
163             <View
164                 android:id="@+id/divider"
165                 android:layout_height="1dp"
166                 android:layout_width="44dp"
167                 android:layout_marginLeft="8dp"
168                 android:layout_marginRight="8dp"
169                 android:layout_marginTop="2dp"
170                 android:layout_marginBottom="2dp" />
171
172             <Space
173                 android:id="@+id/whitespace_top"
174                 android:layout_width="0dp"
175                 android:layout_height="0dp" />
176
177             <LinearLayout
178                 android:id="@+id/taskbar"
179                 android:layout_width="wrap_content"
180                 android:layout_height="wrap_content"
181                 android:orientation="vertical"
182                 android:clickable="false" />
183
184             <Space
185                 android:id="@+id/whitespace_bottom"
186                 android:layout_width="0dp"
187                 android:layout_height="0dp" />
188
189         </LinearLayout>
190
191     </ScrollView>
192
193     <FrameLayout
194         android:id="@+id/add_systray_here"
195         android:layout_width="wrap_content"
196         android:layout_height="wrap_content"
197         android:visibility="gone"/>
198
199     <Space
200         android:id="@+id/space"
201         android:layout_height="4dp"
202         android:layout_width="match_parent" />
203
204     <LinearLayout
205         android:layout_width="@dimen/tb_icon_size"
206         android:layout_height="24dp"
207         android:layout_gravity="center_horizontal"
208         android:clickable="true"
209         android:id="@+id/hide_taskbar_button_layout" >
210
211         <Button
212             android:layout_width="24dp"
213             android:layout_height="24dp"
214             android:layout_marginLeft="21dp"
215             android:textSize="20dp"
216             android:background="@null"
217             android:rotation="90"
218             android:id="@+id/hide_taskbar_button" />
219
220     </LinearLayout>
221
222 </LinearLayout>