summaryrefslogtreecommitdiffstats
path: root/res/values-land
diff options
context:
space:
mode:
authornadlabak <pavel@doshaska.net>2014-04-17 23:00:25 +0200
committernadlabak <pavel@doshaska.net>2014-04-18 14:06:56 +0200
commit53e0df3f835c95b47bd4bbc1b706b098fd8485c8 (patch)
tree0cb7048a08974199059279210263ab2a1cd9853f /res/values-land
parent548bdb02ca7c38e022b6fa12d1256ee4c78f34e4 (diff)
downloadandroid_packages_apps_InCallUI-53e0df3f835c95b47bd4bbc1b706b098fd8485c8.tar.gz
android_packages_apps_InCallUI-53e0df3f835c95b47bd4bbc1b706b098fd8485c8.tar.bz2
android_packages_apps_InCallUI-53e0df3f835c95b47bd4bbc1b706b098fd8485c8.zip
InCallUI: Landscape support (for in-dock use / qwerty sliders)
Change-Id: Ibce2c2c1c3fd3950f1191df6ea978fee151bd6ff
Diffstat (limited to 'res/values-land')
-rw-r--r--res/values-land/array.xml71
-rw-r--r--res/values-land/styles.xml39
2 files changed, 110 insertions, 0 deletions
diff --git a/res/values-land/array.xml b/res/values-land/array.xml
new file mode 100644
index 00000000..44ed2d9e
--- /dev/null
+++ b/res/values-land/array.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Copyright (c) 2013, The Linux Foundation. All rights reserved.
+ ~ Not a Contribution, Apache license notifications and license are retained
+ ~ for attribution purposes only.
+
+ ~ Copyright (C) 2013 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
+ -->
+
+<!-- Array resources for the Phone app. -->
+<resources>
+ <!-- "Target" resources for the GlowPadView widget used for incoming calls;
+ see InCallTouchUi.showIncomingCallWidget() and incall_touch_ui.xml. -->
+
+ <!-- For most incoming calls the GlowPadView widget provides 3 choices:
+ - Answer (drag up)
+ - Reject (drag down)
+ - Respond via SMS (drag left) -->
+ <array name="incoming_call_widget_3way_targets">
+ <item>@null</item>
+ <item>@drawable/ic_lockscreen_answer</item>
+ <item>@drawable/ic_lockscreen_text</item>
+ <item>@drawable/ic_lockscreen_decline</item>
+ </array>
+ <array name="incoming_call_widget_3way_target_descriptions">
+ <item>@null</item>
+ <item>@string/description_target_answer</item>
+ <item>@string/description_target_send_sms</item>
+ <item>@string/description_target_decline</item>
+ </array>
+ <array name="incoming_call_widget_3way_direction_descriptions">
+ <item>@null</item>
+ <item>@string/description_direction_up</item>
+ <item>@string/description_direction_left</item>
+ <item>@*android:string/description_direction_down</item>
+ </array>
+
+ <!-- But in some cases "Respond via SMS" isn't available, so there are
+ only 2 choices:
+ - Answer (drag up)
+ - Reject (drag down) -->
+ <array name="incoming_call_widget_2way_targets">
+ <item>@null</item>
+ <item>@drawable/ic_lockscreen_answer</item>
+ <item>@null</item>
+ <item>@drawable/ic_lockscreen_decline</item>
+ </array>
+ <array name="incoming_call_widget_2way_target_descriptions">
+ <item>@null</item>
+ <item>@string/description_target_answer</item>
+ <item>@null</item>
+ <item>@string/description_target_decline</item>
+ </array>
+ <array name="incoming_call_widget_2way_direction_descriptions">
+ <item>@null</item>
+ <item>@string/description_direction_up</item>
+ <item>@null</item>
+ <item>@*android:string/description_direction_down</item>
+ </array>
+</resources>
diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml
new file mode 100644
index 00000000..fb4e7bce
--- /dev/null
+++ b/res/values-land/styles.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2013 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>
+ <!-- Buttons in the main "button row" of the in-call onscreen touch UI. -->
+ <style name="InCallButton">
+ <item name="android:layout_width">@dimen/in_call_button_height</item>
+ <item name="android:layout_height">0dp</item>
+ <item name="android:layout_weight">1</item>
+ <item name="android:background">?android:attr/selectableItemBackground</item>
+ </style>
+
+ <style name="VerticalSeparator">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">2dp</item>
+ <item name="android:background">@android:color/black</item>
+ </style>
+
+ <!-- "End" button; similar to InCallButton. -->
+ <style name="InCallEndButton">
+ <item name="android:layout_width">@dimen/in_call_end_button_height</item>
+ <item name="android:layout_height">0dp</item>
+ <item name="android:layout_weight">1</item>
+ </style>
+</resources>