OSDN Git Service

Settings: Improve vibrator intensity dialog layout
[android-x86/packages-apps-Settings.git] / res / layout / vibrator_intensity.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2013 The CyanogenMod 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 <RelativeLayout
17     xmlns:android="http://schemas.android.com/apk/res/android"
18     android:layout_height="match_parent"
19     android:layout_width="match_parent"
20     android:paddingTop="24dp"
21     android:paddingBottom="24dp"
22     android:paddingEnd="24dp" >
23
24     <SeekBar
25         android:id="@*android:id/seekbar"
26         android:layout_height="wrap_content"
27         android:layout_width="match_parent"
28         android:layout_alignParentStart="true"
29         android:layout_marginStart="8dp"
30         android:layout_toStartOf="@id/value" />
31
32     <TextView
33         android:id="@+id/value"
34         android:layout_height="wrap_content"
35         android:layout_width="wrap_content"
36         android:layout_alignParentEnd="true"
37         android:layout_marginStart="4dp"
38         android:gravity="center_horizontal"
39         android:minEms="2" />
40
41     <TextView
42         android:id="@+id/warning_text"
43         android:layout_below="@*android:id/seekbar"
44         android:layout_height="wrap_content"
45         android:layout_width="match_parent"
46         android:layout_marginStart="24dp"
47         android:layout_marginTop="24dp" />
48
49 </RelativeLayout>