The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 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 | <!-- Demonstrates different uses of the android.app.AlertDialog. |
| 18 | See corresponding Java code com.example.android.apis.app.AlertDialogSamples.java. --> |
| 19 | |
| 20 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/screen" |
| 21 | android:layout_width="fill_parent" android:layout_height="fill_parent" |
| 22 | android:orientation="vertical"> |
| 23 | <LinearLayout |
| 24 | android:layout_width="fill_parent" android:layout_height="fill_parent" |
| 25 | android:orientation="vertical"> |
| 26 | <Button android:id="@+id/two_buttons" |
| 27 | android:layout_width="fill_parent" android:layout_height="wrap_content" |
| 28 | android:text="@string/alert_dialog_two_buttons"/> |
| 29 | <Button android:id="@+id/two_buttons2" |
| 30 | android:layout_width="fill_parent" android:layout_height="wrap_content" |
| 31 | android:text="@string/alert_dialog_two_buttons2"/> |
| 32 | <Button android:id="@+id/select_button" |
| 33 | android:layout_width="fill_parent" android:layout_height="wrap_content" |
| 34 | android:text="@string/alert_dialog_select_button"/> |
| 35 | <Button android:id="@+id/progress_button" |
| 36 | android:layout_width="fill_parent" android:layout_height="wrap_content" |
| 37 | android:text="@string/alert_dialog_progress_button"/> |
| 38 | <Button android:id="@+id/radio_button" |
| 39 | android:layout_width="fill_parent" android:layout_height="wrap_content" |
| 40 | android:text="@string/alert_dialog_single_choice"/> |
| 41 | <Button android:id="@+id/checkbox_button" |
| 42 | android:layout_width="fill_parent" android:layout_height="wrap_content" |
| 43 | android:text="@string/alert_dialog_multi_choice"/> |
| 44 | <Button android:id="@+id/text_entry_button" |
| 45 | android:layout_width="fill_parent" android:layout_height="wrap_content" |
| 46 | android:text="@string/alert_dialog_text_entry"/> |
| 47 | </LinearLayout> |
| 48 | </ScrollView> |