OSDN Git Service

Storage roots in fragment, sectioned.
authorJeff Sharkey <jsharkey@android.com>
Tue, 6 Aug 2013 18:26:10 +0000 (11:26 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 6 Aug 2013 18:38:46 +0000 (11:38 -0700)
commit66516697a29cf00d93893a1011d3befc7c1ee37f
treec86d01f2f1aaf23edd5b4424388144670dad7cb2
parentef7184a1aa0be5d496a5cb495a0f9e11f342af44
Storage roots in fragment, sectioned.

Move storage roots into a fragment, since it's not a drawer on
tablets.  Cluster and sort roots when displaying.  SectionedListAdapter
to make clustered roots easier to manage.  Add docs for root types.

Move roots cache into separate class to make it easier to share.

Change-Id: Ia0b92eade059e816324641f600c08026c0e268c9
15 files changed:
api/current.txt
core/java/android/provider/DocumentsContract.java
packages/DocumentsUI/res/layout/activity.xml
packages/DocumentsUI/res/layout/fragment_roots.xml [new file with mode: 0644]
packages/DocumentsUI/res/layout/item_root_header.xml [new file with mode: 0644]
packages/DocumentsUI/res/values/strings.xml
packages/DocumentsUI/src/com/android/documentsui/CreateDirectoryFragment.java [new file with mode: 0644]
packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
packages/DocumentsUI/src/com/android/documentsui/RootsCache.java [new file with mode: 0644]
packages/DocumentsUI/src/com/android/documentsui/RootsFragment.java [new file with mode: 0644]
packages/DocumentsUI/src/com/android/documentsui/SaveFragment.java
packages/DocumentsUI/src/com/android/documentsui/SectionedListAdapter.java [new file with mode: 0644]
packages/DocumentsUI/src/com/android/documentsui/model/Document.java
packages/DocumentsUI/src/com/android/documentsui/model/Root.java