diff options
author | Henrik Baard <henrik.baard@sonyericsson.com> | 2010-12-17 15:51:12 +0100 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2011-05-21 05:23:55 -0400 |
commit | 77349cdf78fc1e7f47e780d3dfd65077b321b73d (patch) | |
tree | 3ac88e5dfbb565d11b60e5f805d446a970cd6d53 | |
parent | 5f02f8adad5ac840ee21d8260c56f28f52c998b9 (diff) | |
download | android_packages_providers_DownloadProvider-gingerbread-release.tar.gz android_packages_providers_DownloadProvider-gingerbread-release.tar.bz2 android_packages_providers_DownloadProvider-gingerbread-release.zip |
Making it possible to style download ui using overlaycm-7.1.0gingerbread-release
Today it is not possible to style the download ui using the
overlay mechanism. The reason for this is that the download
ui is missing an application theme.
The solution is to add a DefaultTheme that can be overridden
using overlay.
Change-Id: I2d01838feb863408e284fd0b558eb0d9c8e50e89
-rw-r--r-- | ui/AndroidManifest.xml | 20 | ||||
-rw-r--r-- | ui/res/values/styles.xml | 22 |
2 files changed, 41 insertions, 1 deletions
diff --git a/ui/AndroidManifest.xml b/ui/AndroidManifest.xml index c2c93241..0772ef35 100644 --- a/ui/AndroidManifest.xml +++ b/ui/AndroidManifest.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2008 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. + */ +--> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.providers.downloads.ui" android:sharedUserId="android.media"> @@ -8,7 +25,8 @@ <application android:process="android.process.media" android:label="@string/app_label" - android:icon="@drawable/ic_launcher_download"> + android:icon="@drawable/ic_launcher_download" + android:theme="@style/DownloadUiDefaultTheme"> <activity android:name=".DownloadList" android:launchMode="singleTop"> <intent-filter> diff --git a/ui/res/values/styles.xml b/ui/res/values/styles.xml new file mode 100644 index 00000000..d72b5319 --- /dev/null +++ b/ui/res/values/styles.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2011 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="DownloadUiDefaultTheme" parent="@android:style/Theme" /> +</resources> + |