Expand existing v4 Fragment receive result sample to IntentSender
Now that we support startIntentSenderForResult, this change expands
the existing startActivityForResult sample to support both.
Bug: 27700608
Change-Id: Ib8e88b144a34b63a947257547e7453d5f0018835
diff --git a/samples/Support4Demos/res/layout/receive_result.xml b/samples/Support4Demos/res/layout/receive_result.xml
index 5deb2ac..dbaa29b 100644
--- a/samples/Support4Demos/res/layout/receive_result.xml
+++ b/samples/Support4Demos/res/layout/receive_result.xml
@@ -21,17 +21,20 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:padding="4dip"
android:gravity="center_horizontal"
- android:layout_width="match_parent" android:layout_height="match_parent">
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
<TextView
- android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingBottom="4dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/receive_result_instructions"/>
<TextView android:id="@+id/results"
- android:layout_width="match_parent" android:layout_height="10dip"
+ android:layout_width="match_parent"
+ android:layout_height="10dip"
android:layout_weight="1"
android:paddingBottom="4dip"
android:textAppearance="?android:attr/textAppearanceMedium"
@@ -40,11 +43,19 @@
</TextView>
<Button android:id="@+id/get"
- android:layout_width="wrap_content" android:layout_height="wrap_content"
- android:layout_weight="0"
- android:text="@string/receive_result_result">
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:text="@string/receive_result_result">
<requestFocus />
</Button>
+ <Button android:id="@+id/get_intentsender"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:text="@string/receive_result_intentsender">
+ </Button>
+
</LinearLayout>