diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-08-01 11:01:47 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-08-01 11:34:56 -0700 |
commit | 7e258b31e70464bb6d80b8b42f0cef8e4417bd6a (patch) | |
tree | 1a5687b979f6a709303fe3a642403bbbc84ce72b /packages/ExternalStorageProvider/res | |
parent | 3d38fa301ca502882b1bbe06c030d037289636b7 (diff) | |
download | frameworks_base-7e258b31e70464bb6d80b8b42f0cef8e4417bd6a.zip frameworks_base-7e258b31e70464bb6d80b8b42f0cef8e4417bd6a.tar.gz frameworks_base-7e258b31e70464bb6d80b8b42f0cef8e4417bd6a.tar.bz2 |
XML metadata for storage backend; custom icons.
Introduce XML metadata for storage backends, used to indicate if
custom roots should be queried, and provide any custom MIME type
icons inside that backend.
Parse metadata and resolve custom icons in UI.
Change-Id: Iec026c0b10845edff7a345d9389691ddf2c87a0e
Diffstat (limited to 'packages/ExternalStorageProvider/res')
-rw-r--r-- | packages/ExternalStorageProvider/res/drawable-hdpi/ic_pdf.png | bin | 0 -> 1326 bytes | |||
-rw-r--r-- | packages/ExternalStorageProvider/res/xml/document_provider.xml | 22 |
2 files changed, 22 insertions, 0 deletions
diff --git a/packages/ExternalStorageProvider/res/drawable-hdpi/ic_pdf.png b/packages/ExternalStorageProvider/res/drawable-hdpi/ic_pdf.png Binary files differnew file mode 100644 index 0000000..961a9bb --- /dev/null +++ b/packages/ExternalStorageProvider/res/drawable-hdpi/ic_pdf.png diff --git a/packages/ExternalStorageProvider/res/xml/document_provider.xml b/packages/ExternalStorageProvider/res/xml/document_provider.xml new file mode 100644 index 0000000..929a273 --- /dev/null +++ b/packages/ExternalStorageProvider/res/xml/document_provider.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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. +--> + +<documents-provider xmlns:android="http://schemas.android.com/apk/res/android" + android:customRoots="true"> + + <icon android:mimeType="application/pdf" android:icon="@drawable/ic_pdf" /> + <icon android:mimeType="text/*" android:icon="@drawable/ic_pdf" /> +</documents-provider> |