1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright 2019 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<!--Topmost element margins are not supported (ignored) hence the wrapping FrameLayout-->
18<FrameLayout
19        xmlns:android="http://schemas.android.com/apk/res/android"
20        xmlns:tools="http://schemas.android.com/tools"
21        android:layout_width="match_parent"
22        android:layout_height="match_parent"
23        tools:ignore="UnusedAttribute">
24
25    <LinearLayout
26            android:layout_width="match_parent"
27            android:layout_height="match_parent"
28            android:layout_margin="@dimen/spacer_large"
29            android:gravity="center_vertical|start"
30            android:background="@drawable/border"
31            android:orientation="vertical"
32            tools:ignore="UselessParent">
33
34        <LinearLayout
35                android:layout_width="match_parent"
36                android:layout_height="wrap_content"
37                android:orientation="horizontal"
38                android:gravity="center"
39                android:background="@color/magnolia_100"
40                android:layout_margin="@dimen/spacer_large">
41
42            <TextView
43                    android:layout_margin="@dimen/spacer_small"
44                    android:text="@string/id_colon"
45                    android:layout_width="wrap_content"
46                    android:layout_height="wrap_content"/>
47            <TextView
48                    android:layout_margin="@dimen/spacer_small"
49                    android:id="@+id/textViewItemText"
50                    android:layout_width="0dp"
51                    android:layout_height="wrap_content"
52                    android:layout_weight="1"
53                    android:textDirection="locale"/>
54        </LinearLayout>
55
56        <LinearLayout
57                android:layout_width="match_parent"
58                android:layout_height="wrap_content"
59                android:background="@color/magnolia_100"
60                android:orientation="horizontal"
61                android:gravity="center"
62                android:layout_margin="@dimen/spacer_large">
63
64            <TextView
65                    android:layout_margin="@dimen/spacer_small"
66                    android:text="@string/count_colon"
67                    android:layout_width="wrap_content"
68                    android:layout_height="wrap_content"/>
69
70            <TextView
71                    android:layout_margin="@dimen/spacer_small"
72                    android:id="@+id/textViewCount"
73                    android:layout_width="0dp"
74                    android:layout_height="wrap_content"
75                    android:layout_weight="1"
76                    android:accessibilityLiveRegion="polite"/>
77        </LinearLayout>
78
79        <Button
80                android:id="@+id/buttonCountIncrease"
81                android:layout_margin="@dimen/spacer_large"
82                android:layout_width="wrap_content"
83                android:backgroundTint="@color/teal_200"
84                android:text="@string/increase_count"
85                android:layout_height="wrap_content"/>
86    </LinearLayout>
87</FrameLayout>