diff options
author | Daniel Sandler <dsandler@android.com> | 2010-04-22 14:37:59 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2010-04-23 12:37:23 -0400 |
commit | c9b1877f9acf604897c719d70dc99685d10849b5 (patch) | |
tree | 878a47a9d08323eee4a7d92ee5cfa5b88d10d6c9 /res/drawable/hotseat_phone.xml | |
parent | d65d08e709ec0916446100bae0a7276d0800382f (diff) | |
download | android_packages_apps_Trebuchet-c9b1877f9acf604897c719d70dc99685d10849b5.tar.gz android_packages_apps_Trebuchet-c9b1877f9acf604897c719d70dc99685d10849b5.tar.bz2 android_packages_apps_Trebuchet-c9b1877f9acf604897c719d70dc99685d10849b5.zip |
New Launcher feature: "hotseat" icons.
The hotseats are permanent slots on either side of the
AllApps button. Their functions are:
LEFT/BOTTOM: Phone
Launched via the hardcoded class name
com.android.contacts/.ContactsLaunchActivity.
RIGHT/TOP: Browser
Launched by querying to see which application is the
default for URLs, then starting that activity directly.
In the future, it would be ideal to allow an application
with permission to access LauncherProvider to customize
these (icons, contentDescriptions, and Intents).
Bug: 2559083
Change-Id: I56f6e745f8574aa17e28feaa9d2118fb4a715cd4
Diffstat (limited to 'res/drawable/hotseat_phone.xml')
-rw-r--r-- | res/drawable/hotseat_phone.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/res/drawable/hotseat_phone.xml b/res/drawable/hotseat_phone.xml new file mode 100644 index 000000000..318a81ebe --- /dev/null +++ b/res/drawable/hotseat_phone.xml @@ -0,0 +1,23 @@ +<?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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" android:drawable="@drawable/hotseat_phone_pressed" /> + <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/hotseat_phone_focused" /> + <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/hotseat_phone_normal" /> + <item android:drawable="@drawable/hotseat_phone_normal" /> +</selector> + |