diff options
author | huiwan <huiwan@codeaurora.org> | 2014-10-15 13:44:50 +0800 |
---|---|---|
committer | Matt Garnes <matt@cyngn.com> | 2014-11-13 17:15:21 -0800 |
commit | 556003544ef4081544e85026184f3910b83f2988 (patch) | |
tree | dc78fb562d0d29735832d6a7cd09f63d940da64d /res | |
parent | 6c8633515805c8effc89b22965b7d08b54d49d6b (diff) | |
download | packages_apps_InCallUI-556003544ef4081544e85026184f3910b83f2988.tar.gz packages_apps_InCallUI-556003544ef4081544e85026184f3910b83f2988.tar.bz2 packages_apps_InCallUI-556003544ef4081544e85026184f3910b83f2988.zip |
InCallUI: add volume boost and volume enhancement UI
- Add volume boost UI in calling screen to enable volume boost and volume
enhancement function during calling.
- Apply volume boost UI with new icon.
- Update the volume boost UI by phone/audio status change
- Enable volume boost icon in TTY HCO(TTY + Earpiece) in UI layer.
- Restrict volume boost function with earpiece and speaker audio mode.
Change-Id: Ic42d8a24602939038c60e6a1a2812a4125200c99
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/vb_active.png | bin | 0 -> 4492 bytes | |||
-rw-r--r-- | res/drawable-hdpi/vb_disable.png | bin | 0 -> 4065 bytes | |||
-rw-r--r-- | res/drawable-hdpi/vb_normal.png | bin | 0 -> 4431 bytes | |||
-rw-r--r-- | res/drawable-mdpi/vb_active.png | bin | 0 -> 3439 bytes | |||
-rw-r--r-- | res/drawable-mdpi/vb_disable.png | bin | 0 -> 3000 bytes | |||
-rw-r--r-- | res/drawable-mdpi/vb_normal.png | bin | 0 -> 3336 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/vb_active.png | bin | 0 -> 5745 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/vb_disable.png | bin | 0 -> 5511 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/vb_normal.png | bin | 0 -> 5645 bytes | |||
-rw-r--r-- | res/layout/call_card_content.xml | 9 | ||||
-rw-r--r-- | res/values-zh-rCN/strings.xml | 3 | ||||
-rw-r--r-- | res/values/strings.xml | 5 |
12 files changed, 17 insertions, 0 deletions
diff --git a/res/drawable-hdpi/vb_active.png b/res/drawable-hdpi/vb_active.png Binary files differnew file mode 100644 index 00000000..2a82ca8a --- /dev/null +++ b/res/drawable-hdpi/vb_active.png diff --git a/res/drawable-hdpi/vb_disable.png b/res/drawable-hdpi/vb_disable.png Binary files differnew file mode 100644 index 00000000..c2710b0c --- /dev/null +++ b/res/drawable-hdpi/vb_disable.png diff --git a/res/drawable-hdpi/vb_normal.png b/res/drawable-hdpi/vb_normal.png Binary files differnew file mode 100644 index 00000000..b78c30e2 --- /dev/null +++ b/res/drawable-hdpi/vb_normal.png diff --git a/res/drawable-mdpi/vb_active.png b/res/drawable-mdpi/vb_active.png Binary files differnew file mode 100644 index 00000000..a4d52616 --- /dev/null +++ b/res/drawable-mdpi/vb_active.png diff --git a/res/drawable-mdpi/vb_disable.png b/res/drawable-mdpi/vb_disable.png Binary files differnew file mode 100644 index 00000000..e2e4a7d1 --- /dev/null +++ b/res/drawable-mdpi/vb_disable.png diff --git a/res/drawable-mdpi/vb_normal.png b/res/drawable-mdpi/vb_normal.png Binary files differnew file mode 100644 index 00000000..702f619b --- /dev/null +++ b/res/drawable-mdpi/vb_normal.png diff --git a/res/drawable-xhdpi/vb_active.png b/res/drawable-xhdpi/vb_active.png Binary files differnew file mode 100644 index 00000000..78f80b95 --- /dev/null +++ b/res/drawable-xhdpi/vb_active.png diff --git a/res/drawable-xhdpi/vb_disable.png b/res/drawable-xhdpi/vb_disable.png Binary files differnew file mode 100644 index 00000000..777b36fd --- /dev/null +++ b/res/drawable-xhdpi/vb_disable.png diff --git a/res/drawable-xhdpi/vb_normal.png b/res/drawable-xhdpi/vb_normal.png Binary files differnew file mode 100644 index 00000000..7b5468c9 --- /dev/null +++ b/res/drawable-xhdpi/vb_normal.png diff --git a/res/layout/call_card_content.xml b/res/layout/call_card_content.xml index a5fd8f72..e7066dd3 100644 --- a/res/layout/call_card_content.xml +++ b/res/layout/call_card_content.xml @@ -105,6 +105,15 @@ android:layout_height="wrap_content" android:layout_alignTop="@id/photo" /> + <!-- Volume boost and Volume enhancements in-call UI --> + <ImageButton android:id="@+id/volumeBoost" + android:layout_below="@id/primary_call_info_container" + android:layout_width="80dp" + android:layout_height="80dp" + android:visibility="invisible" + android:soundEffectsEnabled="false" + android:background="@drawable/vb_normal"/> + <!-- Placeholder for the dialpad which is replaced with the dialpad fragment when shown. --> <FrameLayout android:id="@+id/dialpadFragmentContainer" diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index bc3a5df4..85418e79 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -171,4 +171,7 @@ <string name="manageConferenceLabel" msgid="4691922394301969053">"管理电话会议"</string> <string name="emergency_call_dialog_number_for_display" msgid="8373041754188879871">"紧急电话号码"</string> <string name="select_account_dialog_title" msgid="5730339500156684204">"选择帐户"</string> + <string name="volume_boost_notify_enabled">"开启音量增强"</string> + <string name="volume_boost_notify_disabled">"关闭音量增强"</string> + <string name="volume_boost_notify_unavailable">"有线/蓝牙耳机连接时,音效增强不可用。"</string> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index a40420a4..5d4cff31 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -533,6 +533,11 @@ <item>never</item> </string-array> + <string name="volume_boost_notify_enabled">"Volume boost ON."</string> + <string name="volume_boost_notify_disabled">"Volume boost OFF."</string> + <string name="volume_boost_notify_unavailable">"Extra volume is not available when Wired/Blue tooth headset is used."</string> + <string name="volume_boost_toast_position" translate="false">600</string> + <!-- Setting option name to pick ringtone (a list dialog comes up). [CHAR LIMIT=30] --> <string name="ringtone_title" msgid="5379026328015343686">Phone ringtone</string> |