Dianne Hackborn | c644c91 | 2011-05-27 18:29:00 -0700 | [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 | <!-- |
| 18 | Demonstrates receiving activity results. |
| 19 | See corresponding Java code com.android.sdk.app.ReceiveResult.java. |
| 20 | --> |
| 21 | |
| 22 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:padding="4dip" |
| 23 | android:gravity="center_horizontal" |
Clara Bayarri | c740663 | 2016-04-15 11:48:32 +0100 | [diff] [blame] | 24 | android:layout_width="match_parent" |
| 25 | android:layout_height="match_parent"> |
Dianne Hackborn | c644c91 | 2011-05-27 18:29:00 -0700 | [diff] [blame] | 26 | |
| 27 | <TextView |
Clara Bayarri | c740663 | 2016-04-15 11:48:32 +0100 | [diff] [blame] | 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
Dianne Hackborn | c644c91 | 2011-05-27 18:29:00 -0700 | [diff] [blame] | 30 | android:layout_weight="0" |
| 31 | android:paddingBottom="4dip" |
| 32 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 33 | android:text="@string/receive_result_instructions"/> |
| 34 | |
| 35 | <TextView android:id="@+id/results" |
Clara Bayarri | c740663 | 2016-04-15 11:48:32 +0100 | [diff] [blame] | 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="10dip" |
Dianne Hackborn | c644c91 | 2011-05-27 18:29:00 -0700 | [diff] [blame] | 38 | android:layout_weight="1" |
| 39 | android:paddingBottom="4dip" |
| 40 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 41 | android:textColor="#000" |
| 42 | android:background="@drawable/green"> |
| 43 | </TextView> |
| 44 | |
| 45 | <Button android:id="@+id/get" |
Clara Bayarri | c740663 | 2016-04-15 11:48:32 +0100 | [diff] [blame] | 46 | android:layout_width="wrap_content" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:layout_weight="0" |
| 49 | android:text="@string/receive_result_result"> |
Dianne Hackborn | c644c91 | 2011-05-27 18:29:00 -0700 | [diff] [blame] | 50 | <requestFocus /> |
| 51 | </Button> |
| 52 | |
Clara Bayarri | c740663 | 2016-04-15 11:48:32 +0100 | [diff] [blame] | 53 | <Button android:id="@+id/get_intentsender" |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:layout_weight="0" |
| 57 | android:text="@string/receive_result_intentsender"> |
| 58 | </Button> |
| 59 | |
Dianne Hackborn | c644c91 | 2011-05-27 18:29:00 -0700 | [diff] [blame] | 60 | </LinearLayout> |
| 61 | |