Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2017 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 
     18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:orientation="vertical"
     20     android:layout_width="fill_parent"
     21     android:layout_height="fill_parent">
     22     <CheckBox
     23         android:id="@+id/checkIfPermittedBeforeCalling"
     24         android:layout_width="wrap_content"
     25         android:layout_height="wrap_content"
     26         android:text="@string/checkIfPermittedBeforeCallingButton" />
     27 
     28     <TextView
     29         android:layout_width="wrap_content"
     30         android:layout_height="wrap_content"
     31         android:text="This app provides two sample implementations of the self-managed ConnectionService API.  Use this UI to add simulated self-managed calls:" />
     32 
     33     <RadioGroup
     34         android:layout_width="wrap_content"
     35         android:layout_height="wrap_content"
     36         android:orientation="horizontal">
     37         <RadioButton
     38             android:layout_width="wrap_content"
     39             android:layout_height="wrap_content"
     40             android:text="Sample Source 1"
     41             android:id="@+id/useAcct1Button"
     42             android:background="@color/test_call_a_color"/>
     43         <RadioButton
     44             android:layout_width="wrap_content"
     45             android:layout_height="wrap_content"
     46             android:text="Sample Source 2"
     47             android:id="@+id/useAcct2Button"
     48             android:background="@color/test_call_b_color"/>
     49     </RadioGroup>
     50 
     51     <RadioGroup
     52         android:layout_width="wrap_content"
     53         android:layout_height="wrap_content"
     54         android:orientation="horizontal">
     55         <RadioButton
     56             android:layout_width="wrap_content"
     57             android:layout_height="wrap_content"
     58             android:text="Video Call"
     59             android:id="@+id/videoCallButton"/>
     60         <RadioButton
     61             android:layout_width="wrap_content"
     62             android:layout_height="wrap_content"
     63             android:text="Audio Call"
     64             android:id="@+id/audioCallButton"/>
     65     </RadioGroup>
     66 
     67     <LinearLayout android:orientation="horizontal"
     68         android:layout_width="wrap_content"
     69         android:layout_height="wrap_content">
     70         <TextView
     71             android:layout_width="wrap_content"
     72             android:layout_height="wrap_content"
     73             android:text="Number:" />
     74         <EditText
     75             android:layout_width="wrap_content"
     76             android:layout_height="wrap_content"
     77             android:id="@+id/phoneNumber"
     78             android:text="tel:555-1212"/>
     79     </LinearLayout>
     80 
     81     <LinearLayout android:orientation="horizontal"
     82         android:layout_width="wrap_content"
     83         android:layout_height="wrap_content">
     84 
     85         <Button
     86             android:layout_width="wrap_content"
     87             android:layout_height="wrap_content"
     88             android:text="Outgoing Call"
     89             android:id="@+id/placeOutgoingCallButton" />
     90         <Button
     91             android:layout_width="wrap_content"
     92             android:layout_height="wrap_content"
     93             android:text="Incoming Call"
     94             android:id="@+id/placeIncomingCallButton" />
     95         <Button
     96             android:layout_width="wrap_content"
     97             android:layout_height="wrap_content"
     98             android:text="Handover From"
     99             android:id="@+id/handoverFrom" />
    100     </LinearLayout>
    101 
    102     <ListView
    103         android:id="@+id/callList"
    104         android:layout_width="match_parent"
    105         android:layout_height="wrap_content"
    106         android:listSelector="@null"
    107         android:divider="@null" />
    108 </LinearLayout>