summaryrefslogtreecommitdiffstats
path: root/samples/browseable/FloatingActionButtonBasic/res
diff options
context:
space:
mode:
authorTrevor Johns <trevorjohns@google.com>2014-10-17 03:31:00 -0700
committerTrevor Johns <trevorjohns@google.com>2014-10-17 03:31:00 -0700
commit6876a9cfc5eb05168ae7fa5215979f22396fff58 (patch)
treeb991f731cfe7256f3cef6a9e55d6b3174cf2e05f /samples/browseable/FloatingActionButtonBasic/res
parent66b6f721b7e20911f0764720346caca5c77fb22b (diff)
downloadandroid_development-6876a9cfc5eb05168ae7fa5215979f22396fff58.tar.gz
android_development-6876a9cfc5eb05168ae7fa5215979f22396fff58.tar.bz2
android_development-6876a9cfc5eb05168ae7fa5215979f22396fff58.zip
Add browseable samples for L SDK release
Change-Id: I71c6ff9a90b7734042d68af7f01e6d61118cc508
Diffstat (limited to 'samples/browseable/FloatingActionButtonBasic/res')
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/animator/fab_anim.xml37
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable-hdpi/ic_launcher.pngbin0 -> 5096 bytes
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable-hdpi/tile.9.pngbin0 -> 196 bytes
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable-mdpi/ic_launcher.pngbin0 -> 2926 bytes
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable-xhdpi/ic_launcher.pngbin0 -> 7244 bytes
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_add.pngbin0 -> 196 bytes
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_launcher.pngbin0 -> 12995 bytes
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_tick.pngbin0 -> 352 bytes
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable/fab_background.xml39
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/drawable/fab_icons.xml29
-rwxr-xr-xsamples/browseable/FloatingActionButtonBasic/res/layout-w720dp/activity_main.xml73
-rwxr-xr-xsamples/browseable/FloatingActionButtonBasic/res/layout/activity_main.xml65
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/layout/fab_layout.xml59
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/menu/main.xml21
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values-sw600dp/template-dimens.xml24
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values-sw600dp/template-styles.xml25
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values-v11/template-styles.xml22
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values-v21/template-styles.xml22
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values/base-strings.xml29
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values/colors.xml22
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values/dimens.xml23
-rwxr-xr-xsamples/browseable/FloatingActionButtonBasic/res/values/fragmentview_strings.xml19
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values/template-dimens.xml32
-rw-r--r--samples/browseable/FloatingActionButtonBasic/res/values/template-styles.xml42
24 files changed, 583 insertions, 0 deletions
diff --git a/samples/browseable/FloatingActionButtonBasic/res/animator/fab_anim.xml b/samples/browseable/FloatingActionButtonBasic/res/animator/fab_anim.xml
new file mode 100644
index 000000000..dd83cd307
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/animator/fab_anim.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2014, The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item
+ android:state_enabled="true" android:state_pressed="true">
+ <objectAnimator
+ android:duration="@android:integer/config_shortAnimTime"
+ android:propertyName="translationZ"
+ android:valueTo="@dimen/fab_press_translation_z"
+ android:valueType="floatType" />
+ </item>
+
+ <item>
+ <objectAnimator
+ android:duration="@android:integer/config_shortAnimTime"
+ android:propertyName="translationZ"
+ android:valueTo="0"
+ android:valueType="floatType" />
+ </item>
+
+</selector> \ No newline at end of file
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable-hdpi/ic_launcher.png b/samples/browseable/FloatingActionButtonBasic/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 000000000..5832edaca
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable-hdpi/tile.9.png b/samples/browseable/FloatingActionButtonBasic/res/drawable-hdpi/tile.9.png
new file mode 100644
index 000000000..135862883
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable-hdpi/tile.9.png
Binary files differ
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable-mdpi/ic_launcher.png b/samples/browseable/FloatingActionButtonBasic/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 000000000..08e272eca
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable-xhdpi/ic_launcher.png b/samples/browseable/FloatingActionButtonBasic/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 000000000..7803f2d3a
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_add.png b/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_add.png
new file mode 100644
index 000000000..f3166df3e
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_add.png
Binary files differ
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_launcher.png b/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 000000000..a1f819cde
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_tick.png b/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_tick.png
new file mode 100644
index 000000000..56f0454ba
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable-xxhdpi/ic_tick.png
Binary files differ
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable/fab_background.xml b/samples/browseable/FloatingActionButtonBasic/res/drawable/fab_background.xml
new file mode 100644
index 000000000..e5e7dbc07
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable/fab_background.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:state_checked="true">
+ <ripple android:color="@color/fab_color_2_muted">
+ <item>
+ <shape>
+ <solid android:color="@color/fab_color_2" />
+ </shape>
+ </item>
+ </ripple>
+ </item>
+
+ <item>
+ <ripple android:color="@color/fab_color_1_muted">
+ <item>
+ <shape>
+ <solid android:color="@color/fab_color_1" />
+ </shape>
+ </item>
+ </ripple>
+ </item>
+
+</selector> \ No newline at end of file
diff --git a/samples/browseable/FloatingActionButtonBasic/res/drawable/fab_icons.xml b/samples/browseable/FloatingActionButtonBasic/res/drawable/fab_icons.xml
new file mode 100644
index 000000000..daf1d2474
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/drawable/fab_icons.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:enterFadeDuration="@android:integer/config_shortAnimTime">
+
+ <item android:state_checked="true">
+ <bitmap android:src="@drawable/ic_tick" android:tint="@android:color/white" />
+ </item>
+
+ <item>
+ <bitmap android:src="@drawable/ic_add" android:tint="@android:color/white" />
+ </item>
+
+</selector> \ No newline at end of file
diff --git a/samples/browseable/FloatingActionButtonBasic/res/layout-w720dp/activity_main.xml b/samples/browseable/FloatingActionButtonBasic/res/layout-w720dp/activity_main.xml
new file mode 100755
index 000000000..c9a52f621
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/layout-w720dp/activity_main.xml
@@ -0,0 +1,73 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/sample_main_layout">
+
+ <LinearLayout
+ android:id="@+id/sample_output"
+ android:layout_width="0px"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <FrameLayout
+ style="@style/Widget.SampleMessageTile"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ style="@style/Widget.SampleMessage"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="@dimen/margin_medium"
+ android:paddingRight="@dimen/margin_medium"
+ android:paddingTop="@dimen/margin_large"
+ android:paddingBottom="@dimen/margin_large"
+ android:text="@string/intro_message" />
+ </FrameLayout>
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="@android:color/darker_gray" />
+
+ <fragment
+ android:name="com.example.android.common.logger.LogFragment"
+ android:id="@+id/log_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="0px"
+ android:layout_weight="1" />
+
+ </LinearLayout>
+
+ <View
+ android:layout_width="1dp"
+ android:layout_height="match_parent"
+ android:background="@android:color/darker_gray" />
+
+ <FrameLayout
+ android:id="@+id/sample_content_fragment"
+ android:layout_weight="2"
+ android:layout_width="0px"
+ android:layout_height="match_parent" />
+
+</LinearLayout>
+
+
diff --git a/samples/browseable/FloatingActionButtonBasic/res/layout/activity_main.xml b/samples/browseable/FloatingActionButtonBasic/res/layout/activity_main.xml
new file mode 100755
index 000000000..1ae4f981e
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/layout/activity_main.xml
@@ -0,0 +1,65 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/sample_main_layout">
+
+ <ViewAnimator
+ android:id="@+id/sample_output"
+ android:layout_width="match_parent"
+ android:layout_height="0px"
+ android:layout_weight="1">
+
+ <ScrollView
+ style="@style/Widget.SampleMessageTile"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ style="@style/Widget.SampleMessage"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="@dimen/horizontal_page_margin"
+ android:paddingRight="@dimen/horizontal_page_margin"
+ android:paddingTop="@dimen/vertical_page_margin"
+ android:paddingBottom="@dimen/vertical_page_margin"
+ android:text="@string/intro_message" />
+ </ScrollView>
+
+ <fragment
+ android:name="com.example.android.common.logger.LogFragment"
+ android:id="@+id/log_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ </ViewAnimator>
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="@android:color/darker_gray" />
+
+ <FrameLayout
+ android:id="@+id/sample_content_fragment"
+ android:layout_weight="2"
+ android:layout_width="match_parent"
+ android:layout_height="0px" />
+
+</LinearLayout>
+
diff --git a/samples/browseable/FloatingActionButtonBasic/res/layout/fab_layout.xml b/samples/browseable/FloatingActionButtonBasic/res/layout/fab_layout.xml
new file mode 100644
index 000000000..ab8c7dc18
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/layout/fab_layout.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2014, The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<FrameLayout android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <com.example.android.floatingactionbuttonbasic.FloatingActionButton
+ android:id="@+id/fab_1"
+ android:layout_width="@dimen/fab_size"
+ android:layout_height="@dimen/fab_size"
+ android:layout_marginTop="16dp"
+ android:elevation="@dimen/fab_elevation"
+ android:background="@drawable/fab_background"
+ android:stateListAnimator="@animator/fab_anim"
+ android:layout_gravity="center_horizontal">
+
+ <ImageView
+ android:layout_width="@dimen/fab_icon_size"
+ android:layout_height="@dimen/fab_icon_size"
+ android:src="@drawable/fab_icons"
+ android:layout_gravity="center"
+ android:duplicateParentState="true"/>
+
+ </com.example.android.floatingactionbuttonbasic.FloatingActionButton>
+
+
+ <com.example.android.floatingactionbuttonbasic.FloatingActionButton
+ android:id="@+id/fab_2"
+ android:layout_width="@dimen/fab_size_small"
+ android:layout_height="@dimen/fab_size_small"
+ android:layout_marginTop="128dp"
+ android:elevation="@dimen/fab_elevation"
+ android:background="@drawable/fab_background"
+ android:stateListAnimator="@animator/fab_anim"
+ android:layout_gravity="center_horizontal">
+
+ <ImageView
+ android:layout_width="@dimen/fab_icon_size"
+ android:layout_height="@dimen/fab_icon_size"
+ android:src="@drawable/fab_icons"
+ android:layout_gravity="center"
+ android:duplicateParentState="true"/>
+
+ </com.example.android.floatingactionbuttonbasic.FloatingActionButton>
+</FrameLayout>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/menu/main.xml b/samples/browseable/FloatingActionButtonBasic/res/menu/main.xml
new file mode 100644
index 000000000..b49c2c526
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/menu/main.xml
@@ -0,0 +1,21 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/menu_toggle_log"
+ android:showAsAction="always"
+ android:title="@string/sample_show_log" />
+</menu>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values-sw600dp/template-dimens.xml b/samples/browseable/FloatingActionButtonBasic/res/values-sw600dp/template-dimens.xml
new file mode 100644
index 000000000..22074a2bd
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values-sw600dp/template-dimens.xml
@@ -0,0 +1,24 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources>
+
+ <!-- Semantic definitions -->
+
+ <dimen name="horizontal_page_margin">@dimen/margin_huge</dimen>
+ <dimen name="vertical_page_margin">@dimen/margin_medium</dimen>
+
+</resources>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values-sw600dp/template-styles.xml b/samples/browseable/FloatingActionButtonBasic/res/values-sw600dp/template-styles.xml
new file mode 100644
index 000000000..03d197418
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values-sw600dp/template-styles.xml
@@ -0,0 +1,25 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources>
+
+ <style name="Widget.SampleMessage">
+ <item name="android:textAppearance">?android:textAppearanceLarge</item>
+ <item name="android:lineSpacingMultiplier">1.2</item>
+ <item name="android:shadowDy">-6.5</item>
+ </style>
+
+</resources>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values-v11/template-styles.xml b/samples/browseable/FloatingActionButtonBasic/res/values-v11/template-styles.xml
new file mode 100644
index 000000000..8c1ea66f2
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values-v11/template-styles.xml
@@ -0,0 +1,22 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources>
+
+ <!-- Activity themes -->
+ <style name="Theme.Base" parent="android:Theme.Holo.Light" />
+
+</resources>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values-v21/template-styles.xml b/samples/browseable/FloatingActionButtonBasic/res/values-v21/template-styles.xml
new file mode 100644
index 000000000..134fcd9d3
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values-v21/template-styles.xml
@@ -0,0 +1,22 @@
+<!--
+ Copyright 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources>
+
+ <!-- Activity themes -->
+ <style name="Theme.Base" parent="android:Theme.Material.Light" />
+
+</resources>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values/base-strings.xml b/samples/browseable/FloatingActionButtonBasic/res/values/base-strings.xml
new file mode 100644
index 000000000..2eea10e69
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values/base-strings.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources>
+ <string name="app_name">FloatingActionButtonBasic</string>
+ <string name="intro_message">
+ <![CDATA[
+
+
+ This sample shows the two sizes of Floating Action Buttons and how to interact with
+ them.
+
+
+ ]]>
+ </string>
+</resources>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values/colors.xml b/samples/browseable/FloatingActionButtonBasic/res/values/colors.xml
new file mode 100644
index 000000000..141b1f597
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values/colors.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2014, The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources>
+ <color name="fab_color_1">#ff5252</color>
+ <color name="fab_color_1_muted">#ff8080</color>
+ <color name="fab_color_2">#9c27b0</color>
+ <color name="fab_color_2_muted">#a56ab0</color>
+</resources> \ No newline at end of file
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values/dimens.xml b/samples/browseable/FloatingActionButtonBasic/res/values/dimens.xml
new file mode 100644
index 000000000..f063937a7
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values/dimens.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2014, The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources>
+ <dimen name="fab_elevation">2dp</dimen>
+ <dimen name="fab_press_translation_z">2dp</dimen>
+ <dimen name="fab_size">56dp</dimen>
+ <dimen name="fab_size_small">40dp</dimen>
+ <dimen name="fab_icon_size">24dp</dimen>
+</resources>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values/fragmentview_strings.xml b/samples/browseable/FloatingActionButtonBasic/res/values/fragmentview_strings.xml
new file mode 100755
index 000000000..7b9d9ec4f
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values/fragmentview_strings.xml
@@ -0,0 +1,19 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources>
+ <string name="sample_show_log">Show Log</string>
+ <string name="sample_hide_log">Hide Log</string>
+</resources>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values/template-dimens.xml b/samples/browseable/FloatingActionButtonBasic/res/values/template-dimens.xml
new file mode 100644
index 000000000..39e710b5c
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values/template-dimens.xml
@@ -0,0 +1,32 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources>
+
+ <!-- Define standard dimensions to comply with Holo-style grids and rhythm. -->
+
+ <dimen name="margin_tiny">4dp</dimen>
+ <dimen name="margin_small">8dp</dimen>
+ <dimen name="margin_medium">16dp</dimen>
+ <dimen name="margin_large">32dp</dimen>
+ <dimen name="margin_huge">64dp</dimen>
+
+ <!-- Semantic definitions -->
+
+ <dimen name="horizontal_page_margin">@dimen/margin_medium</dimen>
+ <dimen name="vertical_page_margin">@dimen/margin_medium</dimen>
+
+</resources>
diff --git a/samples/browseable/FloatingActionButtonBasic/res/values/template-styles.xml b/samples/browseable/FloatingActionButtonBasic/res/values/template-styles.xml
new file mode 100644
index 000000000..6e7d593dd
--- /dev/null
+++ b/samples/browseable/FloatingActionButtonBasic/res/values/template-styles.xml
@@ -0,0 +1,42 @@
+<!--
+ Copyright 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources>
+
+ <!-- Activity themes -->
+
+ <style name="Theme.Base" parent="android:Theme.Light" />
+
+ <style name="Theme.Sample" parent="Theme.Base" />
+
+ <style name="AppTheme" parent="Theme.Sample" />
+ <!-- Widget styling -->
+
+ <style name="Widget" />
+
+ <style name="Widget.SampleMessage">
+ <item name="android:textAppearance">?android:textAppearanceMedium</item>
+ <item name="android:lineSpacingMultiplier">1.1</item>
+ </style>
+
+ <style name="Widget.SampleMessageTile">
+ <item name="android:background">@drawable/tile</item>
+ <item name="android:shadowColor">#7F000000</item>
+ <item name="android:shadowDy">-3.5</item>
+ <item name="android:shadowRadius">2</item>
+ </style>
+
+</resources>