New API demo showing arguments to fragments.

Change-Id: I5bc41bb23b7ac6a6d7cbbd08cec67879dc4ae2fe
This commit is contained in:
Dianne Hackborn
2011-03-03 21:50:51 -08:00
parent 45e0abddcf
commit 7f308f27bf
6 changed files with 242 additions and 0 deletions

View File

@@ -44,4 +44,12 @@
<enum name="drop" value="2" />
</attr>
</declare-styleable>
<!-- These are the attributes that we want to retrieve for
app/FragmentArguments.java -->
<!-- BEGIN_INCLUDE(fragment_arguments) -->
<declare-styleable name="FragmentArguments">
<attr name="android:label" />
</declare-styleable>
<!-- END_INCLUDE(fragment_arguments) -->
</resources>

View File

@@ -108,6 +108,12 @@
<string name="fragment_alert_dialog">App/Fragment/Alert Dialog</string>
<string name="fragment_arguments">App/Fragment/Arguments</string>
<string name="fragment_arguments_msg">Demonstrates a fragment that takes arguments
as a Bundle at runtime (on the right) or from attributes in a layout (on the left).</string>
<string name="fragment_arguments_embedded">From Attributes</string>
<string name="fragment_arguments_embedded_land">Landscape Only</string>
<string name="fragment_hide_show">App/Fragment/Hide and Show</string>
<string name="fragment_context_menu">App/Fragment/Context Menu</string>