From d2d93d0b172770145ab4fa320029ede1d6c846f8 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 6 May 2010 11:57:56 -0700 Subject: [PATCH] Update fragment samples to show back stacks and layout. Change-Id: I016f87dc3b7433d0600a9a9308f666a36c5a98ca --- samples/ApiDemos/AndroidManifest.xml | 9 ++- .../ApiDemos/res/layout/fragment_layout.xml | 34 ++++++++++ ...simple_fragment.xml => fragment_stack.xml} | 2 +- samples/ApiDemos/res/values/strings.xml | 4 +- .../android/apis/app/FragmentLayout.java | 66 +++++++++++++++++++ ...SimpleFragment.java => FragmentStack.java} | 40 +++++------ 6 files changed, 132 insertions(+), 23 deletions(-) create mode 100644 samples/ApiDemos/res/layout/fragment_layout.xml rename samples/ApiDemos/res/layout/{simple_fragment.xml => fragment_stack.xml} (96%) create mode 100644 samples/ApiDemos/src/com/example/android/apis/app/FragmentLayout.java rename samples/ApiDemos/src/com/example/android/apis/app/{SimpleFragment.java => FragmentStack.java} (68%) diff --git a/samples/ApiDemos/AndroidManifest.xml b/samples/ApiDemos/AndroidManifest.xml index 84af770ff..bbeed2089 100644 --- a/samples/ApiDemos/AndroidManifest.xml +++ b/samples/ApiDemos/AndroidManifest.xml @@ -209,7 +209,14 @@ - + + + + + + + + diff --git a/samples/ApiDemos/res/layout/fragment_layout.xml b/samples/ApiDemos/res/layout/fragment_layout.xml new file mode 100644 index 000000000..99781777b --- /dev/null +++ b/samples/ApiDemos/res/layout/fragment_layout.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + diff --git a/samples/ApiDemos/res/layout/simple_fragment.xml b/samples/ApiDemos/res/layout/fragment_stack.xml similarity index 96% rename from samples/ApiDemos/res/layout/simple_fragment.xml rename to samples/ApiDemos/res/layout/fragment_stack.xml index d0fbb9f1c..6e3a49f50 100644 --- a/samples/ApiDemos/res/layout/simple_fragment.xml +++ b/samples/ApiDemos/res/layout/fragment_stack.xml @@ -1,5 +1,5 @@ -