Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2007 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7   
      8           http://www.apache.org/licenses/LICENSE-2.0
      9   
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="match_parent"
     20     android:orientation="vertical">
     21     <RadioGroup
     22         android:layout_width="match_parent"
     23         android:layout_height="wrap_content"
     24         android:orientation="vertical"
     25         android:checkedButton="@+id/lunch"
     26         android:id="@+id/menu">
     27         <RadioButton
     28             android:text="@string/radio_group_1_breakfast"
     29             android:id="@+id/breakfast"
     30             />
     31         <RadioButton
     32             android:text="@string/radio_group_1_lunch"
     33             android:id="@id/lunch" />
     34         <RadioButton
     35             android:text="@string/radio_group_1_dinner"
     36             android:id="@+id/dinner" />
     37         <RadioButton
     38             android:text="@string/radio_group_1_all"
     39             android:id="@+id/all" />
     40         <TextView
     41             android:text="@string/radio_group_1_selection"
     42             android:id="@+id/choice" />
     43     </RadioGroup>
     44     <Button
     45         android:layout_width="wrap_content"
     46         android:layout_height="wrap_content"
     47         android:text="@string/radio_group_1_clear"
     48         android:id="@+id/clear" />
     49 </LinearLayout>
     50