From 9114a88d700b2aee25fc600af363a682e51c1cef Mon Sep 17 00:00:00 2001 From: Chris Banes Date: Sat, 18 Apr 2015 12:07:23 +0100 Subject: [PATCH] Add Snackbar demo without a CoordinatorLayout Change-Id: I7e3b8af60666ccdbf476ce21b04d728f4bcc8617 --- .../SupportDesignDemos/AndroidManifest.xml | 9 +++ .../layout/design_snackbar_without_col.xml | 55 +++++++++++++++++++ .../SupportDesignDemos/res/values/strings.xml | 1 + .../SnackbarWithFloatingActionButton.java | 2 +- .../SnackbarWithoutCoordinatorLayout.java | 31 +++++++++++ 5 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 samples/SupportDesignDemos/res/layout/design_snackbar_without_col.xml create mode 100644 samples/SupportDesignDemos/src/com/example/android/support/design/widget/SnackbarWithoutCoordinatorLayout.java diff --git a/samples/SupportDesignDemos/AndroidManifest.xml b/samples/SupportDesignDemos/AndroidManifest.xml index 15c31592c..58829485b 100644 --- a/samples/SupportDesignDemos/AndroidManifest.xml +++ b/samples/SupportDesignDemos/AndroidManifest.xml @@ -90,5 +90,14 @@ + + + + + + + diff --git a/samples/SupportDesignDemos/res/layout/design_snackbar_without_col.xml b/samples/SupportDesignDemos/res/layout/design_snackbar_without_col.xml new file mode 100644 index 000000000..055479a6d --- /dev/null +++ b/samples/SupportDesignDemos/res/layout/design_snackbar_without_col.xml @@ -0,0 +1,55 @@ + + + + + +