diff options
author | Jim Miller <jaggies@google.com> | 2009-11-11 17:53:53 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2009-11-11 18:00:48 -0800 |
commit | 753401aa471d2fb87ab937c2b02b182ebc215c3a (patch) | |
tree | 5b49e067b6a1c076c4e3b0f11c29a62c656d00a7 /core/res | |
parent | 3e584fc944e3d694b4233450f386bd2a930420bf (diff) | |
download | frameworks_base-753401aa471d2fb87ab937c2b02b182ebc215c3a.zip frameworks_base-753401aa471d2fb87ab937c2b02b182ebc215c3a.tar.gz frameworks_base-753401aa471d2fb87ab937c2b02b182ebc215c3a.tar.bz2 |
Fix 2209086: add drawables for SlidingTab states in PhoneApp. Update string file for new SlidingTab sound states.
Tweak "animation" to be 250ms based on conversation with ui guys. Some minor performance tweaks to SlidingTab.
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/drawable/jog_tab_bar_left_answer.xml | 28 | ||||
-rw-r--r-- | core/res/res/drawable/jog_tab_bar_right_decline.xml | 28 | ||||
-rw-r--r-- | core/res/res/drawable/jog_tab_left_answer.xml | 28 | ||||
-rw-r--r-- | core/res/res/drawable/jog_tab_right_decline.xml | 28 | ||||
-rw-r--r-- | core/res/res/values/strings.xml | 6 |
5 files changed, 116 insertions, 2 deletions
diff --git a/core/res/res/drawable/jog_tab_bar_left_answer.xml b/core/res/res/drawable/jog_tab_bar_left_answer.xml new file mode 100644 index 0000000..b1d7c31 --- /dev/null +++ b/core/res/res/drawable/jog_tab_bar_left_answer.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<!-- StateListDrawable used for buttons in the in-call onscreen touch UI. --> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/jog_tab_bar_pressed" /> + + <item android:state_enabled="true" + android:drawable="@drawable/jog_tab_bar_normal" /> + + <item android:state_active="true" + android:drawable="@drawable/jog_tab_bar_confirm_green" /> + +</selector> diff --git a/core/res/res/drawable/jog_tab_bar_right_decline.xml b/core/res/res/drawable/jog_tab_bar_right_decline.xml new file mode 100644 index 0000000..ae82aba --- /dev/null +++ b/core/res/res/drawable/jog_tab_bar_right_decline.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<!-- StateListDrawable used for buttons in the in-call onscreen touch UI. --> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/jog_tab_bar_pressed" /> + + <item android:state_enabled="true" + android:drawable="@drawable/jog_tab_bar_normal" /> + + <item android:state_active="true" + android:drawable="@drawable/jog_tab_bar_confirm_red" /> + +</selector> diff --git a/core/res/res/drawable/jog_tab_left_answer.xml b/core/res/res/drawable/jog_tab_left_answer.xml new file mode 100644 index 0000000..18ec7fa --- /dev/null +++ b/core/res/res/drawable/jog_tab_left_answer.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<!-- StateListDrawable used for buttons in the in-call onscreen touch UI. --> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/jog_tab_left_pressed" /> + + <item android:state_enabled="true" + android:drawable="@drawable/jog_tab_left_normal" /> + + <item android:state_active="true" + android:drawable="@drawable/jog_tab_left_confirm_green" /> + +</selector> diff --git a/core/res/res/drawable/jog_tab_right_decline.xml b/core/res/res/drawable/jog_tab_right_decline.xml new file mode 100644 index 0000000..a3bca5e --- /dev/null +++ b/core/res/res/drawable/jog_tab_right_decline.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<!-- StateListDrawable used for buttons in the in-call onscreen touch UI. --> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/jog_tab_right_pressed" /> + + <item android:state_enabled="true" + android:drawable="@drawable/jog_tab_right_normal" /> + + <item android:state_active="true" + android:drawable="@drawable/jog_tab_right_confirm_red" /> + +</selector> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index d1ae571..1394341 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -1436,8 +1436,10 @@ <string name="lockscreen_glogin_checking_password">Checking...</string> <!-- Displayed on lock screen's left tab - unlock --> <string name="lockscreen_unlock_label">Unlock</string> - <!-- Displayed on lock screen's right tab - mute/unmute --> - <string name="lockscreen_mute_unmute_label">Sound</string> + <!-- Displayed on lock screen's right tab - turn sound on --> + <string name="lockscreen_sound_on_label">Sound on</string> + <!-- Displayed on lock screen's right tab - turn sound off --> + <string name="lockscreen_sound_off_label">Sound off</string> <!-- A format string for 12-hour time of day, just the hour, not the minute, with lower-case "am" or "pm" (example: "3pm"). --> <string name="hour_ampm">"<xliff:g id="hour" example="3">%-l</xliff:g><xliff:g id="ampm" example="pm">%P</xliff:g>"</string> |