160 lines
5.8 KiB
XML
160 lines
5.8 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!-- Copyright (C) 2021 The Android Open Source Project
|
||
|
|
||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
you may not use this file except in compliance with the License.
|
||
|
You may obtain a copy of the License at
|
||
|
|
||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
Unless required by applicable law or agreed to in writing, software
|
||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
See the License for the specific language governing permissions and
|
||
|
limitations under the License.
|
||
|
-->
|
||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/eir_instructions"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:text="@string/bluetooth_eir_advertising_instructions"/>
|
||
|
|
||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:text="@string/bluetooth_eir_advertising_state"
|
||
|
android:layout_gravity="center"/>
|
||
|
<Switch
|
||
|
android:id="@+id/advertising_toggle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:layout_gravity="center"/>
|
||
|
<TextView
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:text="@string/bluetooth_eir_adapter_state"
|
||
|
android:layout_gravity="center"/>
|
||
|
<Switch
|
||
|
android:id="@+id/bt_adapter_toggle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:layout_gravity="center"/>
|
||
|
</LinearLayout>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/uuid_instructions"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:text="@string/bluetooth_eir_uuid_instructions"/>
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/reset_uuid_defaults"
|
||
|
android:layout_width="200dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="Reset UUIDs"/>
|
||
|
|
||
|
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="match_parent"
|
||
|
android:columnCount = "2">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_margin="10dp">
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/uuid1"
|
||
|
android:layout_width="575dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:inputType="text"/>
|
||
|
|
||
|
<Switch
|
||
|
android:id="@+id/uuid1_toggle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:layout_gravity="center"/>
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_margin="10dp">
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/uuid2"
|
||
|
android:layout_width="575dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:inputType="text"/>
|
||
|
|
||
|
<Switch
|
||
|
android:id="@+id/uuid2_toggle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:layout_gravity="center"/>
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_margin="10dp">
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/uuid3"
|
||
|
android:layout_width="575dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:inputType="text"/>
|
||
|
|
||
|
<Switch
|
||
|
android:id="@+id/uuid3_toggle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:layout_gravity="center"/>
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_margin="10dp">
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/uuid4"
|
||
|
android:layout_width="575dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:inputType="text"/>
|
||
|
|
||
|
<Switch
|
||
|
android:id="@+id/uuid4_toggle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="30sp"
|
||
|
android:layout_gravity="center"/>
|
||
|
</LinearLayout>
|
||
|
</GridLayout>
|
||
|
</LinearLayout>
|