summaryrefslogtreecommitdiffstats
path: root/samples/browseable/DragAndDropAcrossApps/DragSource/res/values
diff options
context:
space:
mode:
Diffstat (limited to 'samples/browseable/DragAndDropAcrossApps/DragSource/res/values')
-rw-r--r--samples/browseable/DragAndDropAcrossApps/DragSource/res/values/colors.xml21
-rw-r--r--samples/browseable/DragAndDropAcrossApps/DragSource/res/values/dimen.xml31
-rwxr-xr-xsamples/browseable/DragAndDropAcrossApps/DragSource/res/values/fragmentview_strings.xml19
-rw-r--r--samples/browseable/DragAndDropAcrossApps/DragSource/res/values/strings.xml22
-rw-r--r--samples/browseable/DragAndDropAcrossApps/DragSource/res/values/template-dimens.xml32
-rw-r--r--samples/browseable/DragAndDropAcrossApps/DragSource/res/values/template-styles.xml42
6 files changed, 167 insertions, 0 deletions
diff --git a/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/colors.xml b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/colors.xml
new file mode 100644
index 000000000..801e292dd
--- /dev/null
+++ b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/colors.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright 2016 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="drag_inactive">#ff888888</color>
+</resources>
diff --git a/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/dimen.xml b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/dimen.xml
new file mode 100644
index 000000000..220d1b82b
--- /dev/null
+++ b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/dimen.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright 2016 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="section_marginTop">16dp</dimen>
+ <dimen name="section_marginBottom">0dp</dimen>
+ <dimen name="section_marginLeft">16dp</dimen>
+ <dimen name="section_marginRight">16dp</dimen>
+
+ <dimen name="image_size">80dp</dimen>
+ <dimen name="image_margin">16dp</dimen>
+
+ <dimen name="text_size">0dp</dimen>
+ <dimen name="text_margin">10dp</dimen>
+ <dimen name="checkbox_margin">6dp</dimen>
+</resources>
diff --git a/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/fragmentview_strings.xml b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/fragmentview_strings.xml
new file mode 100755
index 000000000..7b9d9ec4f
--- /dev/null
+++ b/samples/browseable/DragAndDropAcrossApps/DragSource/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/DragAndDropAcrossApps/DragSource/res/values/strings.xml b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/strings.xml
new file mode 100644
index 000000000..f2ab0925b
--- /dev/null
+++ b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/strings.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright 2015 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="drag_instruction">These images can be dragged to any app.\nTry dragging it to the area below.</string>
+ <string name="intro_message">This sample demonstrates drag and drop functionality and is the \'source\' app for this sample. It shows how data can be moved between views within an app or between different apps.\nTry dragging one of the images to the highlighted target in this app.\nOpen the \'DropTarget\' sample app next to this app and try dragging an image between the two apps.\nImages are served through a content provider. The target app must request permission to access the dropped content.</string>
+</resources>
diff --git a/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/template-dimens.xml b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/template-dimens.xml
new file mode 100644
index 000000000..39e710b5c
--- /dev/null
+++ b/samples/browseable/DragAndDropAcrossApps/DragSource/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/DragAndDropAcrossApps/DragSource/res/values/template-styles.xml b/samples/browseable/DragAndDropAcrossApps/DragSource/res/values/template-styles.xml
new file mode 100644
index 000000000..6e7d593dd
--- /dev/null
+++ b/samples/browseable/DragAndDropAcrossApps/DragSource/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>