Add StorageProvider sample code to browseables.
Change-Id: I353f596e9fc7455781e4c8d7f1972dfcd5739ddb
This commit is contained in:
34
samples/browseable/StorageProvider/res/values/arrays.xml
Normal file
34
samples/browseable/StorageProvider/res/values/arrays.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<!--
|
||||
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>
|
||||
<array name="image_res_ids">
|
||||
<item>@raw/android_dinner</item>
|
||||
<item>@raw/android_rose</item>
|
||||
<item>@raw/android_pumpkins_fall</item>
|
||||
<item>@raw/android_computer_back</item>
|
||||
<item>@raw/android_computer_android_studio</item>
|
||||
</array>
|
||||
|
||||
<array name="text_res_ids">
|
||||
<item>@raw/cat_names</item>
|
||||
<item>@raw/dog_names</item>
|
||||
</array>
|
||||
|
||||
<array name="docx_res_ids">
|
||||
<item>@raw/example</item>
|
||||
</array>
|
||||
</resources>
|
||||
26
samples/browseable/StorageProvider/res/values/strings.xml
Normal file
26
samples/browseable/StorageProvider/res/values/strings.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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="log_in">Log in</string>
|
||||
<string name="log_out">Log out</string>
|
||||
<string name="logged_in_info">You are currently logged in, which means the documents in MyCloud are visible to other applications.</string>
|
||||
<string name="logged_out_info">You are currently logged out, so MyCloud is not visible as a document provider.</string>
|
||||
<string name="root_summary">cloudy with a chance of …</string>
|
||||
<string name="key_logged_in">logged_in</string>
|
||||
</resources>
|
||||
38
samples/browseable/StorageProvider/res/values/styles.xml
Normal file
38
samples/browseable/StorageProvider/res/values/styles.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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>
|
||||
|
||||
<style name="MyAppTheme" parent="AppTheme">
|
||||
<item name="android:textViewStyle">@style/MyTextViewStyle</item>
|
||||
<item name="android:actionBarStyle">@style/MyActionBarStyle</item>
|
||||
<item name="android:actionMenuTextColor">@android:color/white</item>
|
||||
</style>
|
||||
|
||||
<style name="MyActionBarStyle" parent="android:Widget.Holo.Light.ActionBar.Solid.Inverse">
|
||||
<item name="android:background">#5E2D79</item>
|
||||
<item name="android:backgroundSplit">#5E2D79</item>
|
||||
</style>
|
||||
|
||||
<style name="MyTextViewStyle" parent="android:TextAppearance.Holo.Widget.TextView">
|
||||
<item name="android:textSize">18sp</item>
|
||||
<item name="android:paddingRight">@dimen/margin_medium</item>
|
||||
<item name="android:paddingLeft">@dimen/margin_medium</item>
|
||||
<item name="android:fontFamily">sans-serif-light</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user