summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-08-06 15:01:44 -0700
committerTyler Gunn <tgunn@google.com>2015-08-06 15:01:44 -0700
commitc35d396656363774843c84bd138e9f23367a5567 (patch)
tree00b6ee8e3ddf1c38d649ec9003af9cc22489d455 /res/layout
parent56769b9225e2380925a3df11651e87f8bd0c6d3e (diff)
downloadandroid_packages_apps_ContactsCommon-c35d396656363774843c84bd138e9f23367a5567.tar.gz
android_packages_apps_ContactsCommon-c35d396656363774843c84bd138e9f23367a5567.tar.bz2
android_packages_apps_ContactsCommon-c35d396656363774843c84bd138e9f23367a5567.zip
Add CallHistory activity to CallSubjectDialog, plus others.
- Shows last 5 call subjects. - Add OnPhoneNumberPickerActionListener for handling callbacks from search results to trigger making a call with a subject. Bug: 22685114 Change-Id: I3b1e6660c8fa4b3c289e538d673a82caabb57a73
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/call_subject_history.xml33
-rw-r--r--res/layout/dialog_call_subject.xml2
2 files changed, 34 insertions, 1 deletions
diff --git a/res/layout/call_subject_history.xml b/res/layout/call_subject_history.xml
new file mode 100644
index 00000000..5f6ef3a7
--- /dev/null
+++ b/res/layout/call_subject_history.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2015 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
+ -->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/background"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@android:color/transparent" >
+
+ <ListView
+ android:id="@+id/subject_list"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_alignParentBottom="true"
+ android:background="@color/call_subject_history_background"
+ android:divider="@null"
+ android:elevation="8dp" />
+
+</RelativeLayout> \ No newline at end of file
diff --git a/res/layout/dialog_call_subject.xml b/res/layout/dialog_call_subject.xml
index 3b7adddf..005f4402 100644
--- a/res/layout/dialog_call_subject.xml
+++ b/res/layout/dialog_call_subject.xml
@@ -19,7 +19,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
- android:layout_height="match_parent" >
+ android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="match_parent"