1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2021 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical">
22  <View
23      android:layout_width="match_parent"
24      android:layout_height="2dp"
25      android:background="@drawable/bt_info_separator_bg"></View>
26  <LinearLayout
27      android:id="@+id/main_container"
28      android:layout_width="match_parent"
29      android:layout_height="wrap_content"
30      android:importantForAccessibility="no"
31      android:orientation="horizontal"
32      android:paddingEnd="@dimen/lb_preference_item_padding_end"
33      android:paddingStart="@dimen/lb_preference_item_padding_start">
34    <FrameLayout
35        android:layout_width="wrap_content"
36        android:layout_height="wrap_content"
37        android:layout_marginEnd="@dimen/lb_preference_item_icon_margin_end"
38        android:layout_gravity="center_horizontal|top">
39    <ImageView
40        android:id="@+id/info_icon"
41        android:layout_width="@dimen/lb_preference_item_icon_size"
42        android:layout_height="@dimen/lb_preference_item_icon_size"
43        android:layout_marginTop="@dimen/settings_bt_info_item_icon_margin_top"
44        android:layout_marginEnd="@dimen/settings_bt_info_item_icon_margin"
45        android:layout_marginStart="@dimen/settings_bt_info_item_icon_margin"
46        android:src="@drawable/ic_baseline_info_24dp"/>
47    </FrameLayout>
48    <LinearLayout
49        android:id="@+id/item_container"
50        android:layout_width="0dp"
51        android:layout_height="wrap_content"
52        android:layout_weight="1"
53        android:focusable="true"
54        android:orientation="vertical">
55      <Space android:layout_width="0dp"
56          android:layout_height="@dimen/lb_preference_item_text_space_top"/>
57      <LinearLayout
58          android:id="@+id/battery_container"
59          android:layout_width="match_parent"
60          android:layout_height="wrap_content"
61          android:layout_weight="1"
62          android:layout_marginBottom="@dimen/settings_bt_info_row_margin_bottom"
63          android:focusable="true"
64          android:orientation="vertical"
65          android:visibility="gone">
66        <TextView
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:fontFamily="sans-serif-condensed"
70            android:textColor="@color/lb_preference_item_secondary_text_color"
71            android:textSize="@dimen/lb_preference_item_secondary_text_size"
72            android:text="@string/settings_remote_battery_level_label"/>
73        <TextView
74            android:id="@+id/battery_level_text"
75            android:layout_width="wrap_content"
76            android:layout_height="wrap_content"
77            android:fontFamily="sans-serif-condensed"
78            android:textColor="@color/lb_preference_item_secondary_text_color"
79            android:textSize="@dimen/lb_preference_item_secondary_text_size"/>
80      </LinearLayout>
81
82      <LinearLayout
83          android:id="@+id/firmware_container"
84          android:layout_width="match_parent"
85          android:layout_height="wrap_content"
86          android:layout_weight="1"
87          android:focusable="true"
88          android:layout_marginBottom="@dimen/settings_bt_info_row_margin_bottom"
89          android:orientation="vertical"
90          android:visibility="gone">
91        <TextView
92            android:layout_width="wrap_content"
93            android:layout_height="wrap_content"
94            android:fontFamily="sans-serif-condensed"
95            android:textColor="@color/lb_preference_item_secondary_text_color"
96            android:textSize="@dimen/lb_preference_item_secondary_text_size"
97            android:text="@string/settings_remote_firmware_label"/>
98        <TextView
99            android:id="@+id/firmware_text"
100            android:layout_width="wrap_content"
101            android:layout_height="wrap_content"
102            android:fontFamily="sans-serif-condensed"
103            android:textColor="@color/lb_preference_item_secondary_text_color"
104            android:textSize="@dimen/lb_preference_item_secondary_text_size"/>
105      </LinearLayout>
106
107      <LinearLayout
108          android:id="@+id/serial_number_container"
109          android:layout_width="match_parent"
110          android:layout_height="wrap_content"
111          android:layout_weight="1"
112          android:focusable="true"
113          android:orientation="vertical"
114          android:visibility="gone">
115        <TextView
116            android:layout_width="wrap_content"
117            android:layout_height="wrap_content"
118            android:fontFamily="sans-serif-condensed"
119            android:textColor="@color/lb_preference_item_secondary_text_color"
120            android:textSize="@dimen/lb_preference_item_secondary_text_size"
121            android:text="@string/settings_remote_serial_number_label"/>
122        <TextView
123            android:id="@+id/serial_number_text"
124            android:layout_width="wrap_content"
125            android:layout_height="wrap_content"
126            android:fontFamily="sans-serif-condensed"
127            android:textColor="@color/lb_preference_item_secondary_text_color"
128            android:textSize="@dimen/lb_preference_item_secondary_text_size"/>
129      </LinearLayout>
130    </LinearLayout>
131  </LinearLayout>
132</LinearLayout>