diff options
author | Andrew Lee <anwlee@google.com> | 2014-07-21 10:55:04 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-07-21 17:27:55 -0700 |
commit | ddb824ecb3f052551b3ea97d5f5cb3037ec4c683 (patch) | |
tree | ff357d74a4c84c6913bb7ae106275dab6e581faf /res/menu | |
parent | 746ee736f255772f7da308765fab22ba7512a10e (diff) | |
download | packages_apps_InCallUI-ddb824ecb3f052551b3ea97d5f5cb3037ec4c683.tar.gz packages_apps_InCallUI-ddb824ecb3f052551b3ea97d5f5cb3037ec4c683.tar.bz2 packages_apps_InCallUI-ddb824ecb3f052551b3ea97d5f5cb3037ec4c683.zip |
Implement InCall overflow button.
- If there are more than 5 items (for a specifically identified case)
collapse extra menu items into an overflow menu.
- Construct/update menu, with appropriate click/dismiss listeners.
This will happen every time something with the call buttons is
updated, but I thought it was better to continue to track state in
the presenter, rather than the fragment.
- Add strings for associated menu items.
Change-Id: Iaa036de3ed1c9abf16605181590d7241896c941d
Diffstat (limited to 'res/menu')
-rw-r--r-- | res/menu/incall_overflow_menu.xml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/res/menu/incall_overflow_menu.xml b/res/menu/incall_overflow_menu.xml new file mode 100644 index 00000000..06208ebd --- /dev/null +++ b/res/menu/incall_overflow_menu.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2014 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 + --> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/overflow_merge_menu_item" + android:title="@string/overflowMergeMenuItemText" /> + + <item android:id="@+id/overflow_add_menu_item" + android:title="@string/overflowAddMenuItemText" /> + + <item android:id="@+id/overflow_hold_menu_item" + android:title="@string/overflowHoldMenuItemText" /> + + <item android:id="@+id/overflow_resume_menu_item" + android:title="@string/overflowResumeMenuItemText" /> + + <item android:id="@+id/overflow_swap_menu_item" + android:title="@string/overflowSwapMenuItemText" /> +</menu> |