1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 The Android Open Source Project
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8  http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16<!-- A dummy wrapper layout so we can set the layout direction of the GridLayout
17     without impacting its positioning in a parent view group with a potentially different
18     layout direction. -->
19<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
20              android:layout_width="wrap_content"
21              android:layout_height="wrap_content">
22    <!-- Dialpad should always have LTR layout regardless of the locale. -->
23    <GridLayout
24        android:layout_width="wrap_content"
25        android:layout_height="wrap_content"
26        android:columnCount="@integer/tuner_dialpad_column_count"
27        android:layoutDirection="ltr">
28
29        <!-- Row 1 -->
30        <Button
31            android:id="@+id/manual_tuner_1"
32            android:layout_marginRight="@dimen/dialpad_space_horizontal"
33            android:text="1"
34            android:tag="1"
35            style="@style/DialpadKeyButtonStyle" />
36        <Button
37            android:id="@+id/manual_tuner_2"
38            android:layout_marginRight="@dimen/dialpad_space_horizontal"
39            android:text="@string/manual_tuner_2"
40            android:tag="2"
41            style="@style/DialpadKeyButtonStyle" />
42        <Button
43            android:id="@+id/manual_tuner_3"
44            android:text="@string/manual_tuner_3"
45            android:tag="3"
46            style="@style/DialpadKeyButtonStyle" />
47
48        <!-- Row 2 -->
49        <Button
50            android:id="@+id/manual_tuner_4"
51            android:layout_marginRight="@dimen/dialpad_space_horizontal"
52            android:text="@string/manual_tuner_4"
53            android:tag="4"
54            style="@style/DialpadKeyButtonStyle" />
55        <Button
56            android:id="@+id/manual_tuner_5"
57            android:layout_marginRight="@dimen/dialpad_space_horizontal"
58            android:text="@string/manual_tuner_5"
59            android:tag="5"
60            style="@style/DialpadKeyButtonStyle" />
61        <Button
62            android:id="@+id/manual_tuner_6"
63            android:text="@string/manual_tuner_6"
64            android:tag="6"
65            style="@style/DialpadKeyButtonStyle" />
66
67        <!-- Row 3 -->
68        <Button
69            android:id="@+id/manual_tuner_7"
70            android:layout_marginRight="@dimen/dialpad_space_horizontal"
71            android:text="@string/manual_tuner_7"
72            android:tag="7"
73            style="@style/DialpadKeyButtonStyle" />
74        <Button
75            android:id="@+id/manual_tuner_8"
76            android:layout_marginRight="@dimen/dialpad_space_horizontal"
77            android:text="@string/manual_tuner_8"
78            android:tag="8"
79            style="@style/DialpadKeyButtonStyle" />
80        <Button
81            android:id="@+id/manual_tuner_9"
82            android:text="@string/manual_tuner_9"
83            android:tag="9"
84            style="@style/DialpadKeyButtonStyle"/>
85
86        <!-- Row 4 -->
87        <ImageView
88            android:id="@+id/manual_tuner_backspace"
89            android:layout_marginRight="@dimen/dialpad_space_horizontal"
90            android:scaleType="center"
91            android:src="@drawable/ic_backspace"
92            style="@style/DialpadKeyButtonStyle" />
93        <Button
94            android:id="@+id/manual_tuner_0"
95            android:layout_marginRight="@dimen/dialpad_space_horizontal"
96            android:text="@string/manual_tuner_0"
97            android:tag="0"
98            style="@style/DialpadKeyButtonStyle" />
99    </GridLayout>
100</FrameLayout>