Xml文件  |  117行  |  4.64 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2017 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:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <CheckBox
        android:id="@+id/checkIfPermittedBeforeCalling"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/checkIfPermittedBeforeCallingButton" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="This app provides two sample implementations of the self-managed ConnectionService API.  Use this UI to add simulated self-managed calls:" />

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <TextView
            android:id="@+id/textView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" android:layout_weight="1"
            android:text="Acct:"/>
        <RadioGroup
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1" android:orientation="horizontal">
            <RadioButton
                android:id="@+id/useAcct1Button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@color/test_call_a_color"
                android:checked="true" android:text="1"/>
            <RadioButton
                android:id="@+id/useAcct2Button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@color/test_call_b_color"
                android:text="2"/>
        </RadioGroup>
        <TextView
            android:id="@+id/hasFocus"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" android:layout_weight="1"
            android:text="👎 No Focus 👎"/>
    </LinearLayout>

    <LinearLayout android:orientation="horizontal"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Number:" />
        <EditText
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/phoneNumber"
            android:text="tel:555-1212"/>
        <CheckBox
            android:id="@+id/holdable"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:layout_weight="1"
            android:checked="true" android:text="Holdable"/>
        <CheckBox
            android:id="@+id/videoCall"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:layout_weight="1"
            android:text="Video"/>
    </LinearLayout>

    <LinearLayout android:orientation="horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <Button
            android:id="@+id/placeOutgoingCallButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Outgoing"/>
        <Button
            android:id="@+id/placeIncomingCallButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Incoming"/>
        <Button
            android:id="@+id/handoverFrom"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Accept Handover"/>
    </LinearLayout>

    <ListView
        android:id="@+id/callList"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:listSelector="@null"
        android:divider="@null" />
</LinearLayout>