Xml文件  |  90行  |  3.46 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2007, 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="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical">

    <LinearLayout android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical">

        <TextView android:id="@+id/commandText"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:textSize="12pt"/>

        <TextView android:id="@+id/statusText"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"/>
    </LinearLayout>

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

        <Button android:id="@+id/recordButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/recordButton"/>

        <Button android:id="@+id/redoButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/redoButton"/>
    </LinearLayout>

    <RadioGroup android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:padding="10dip"
                android:orientation="vertical" android:layout_weight="30">

        <RadioButton android:id="@+id/codec11KHzRadioButton"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"/>

        <RadioButton android:id="@+id/codec8KHzRadioButton"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"/>
    </RadioGroup>

    <RadioGroup android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:orientation="vertical" android:layout_weight="30">

        <RadioButton android:id="@+id/callRadioButton"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="@string/callRadioButton"/>

        <RadioButton android:id="@+id/dialNanpRadioButton"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="@string/dialNanpRadioButton"/>

        <RadioButton android:id="@+id/dialPairsRadioButton"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="@string/dialPairsRadioButton"/>
    </RadioGroup>

</LinearLayout>