summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorZheng Fu <zhengfu@google.com>2014-08-26 14:24:41 -0700
committerBrian Attwell <brianattwell@google.com>2014-08-27 16:29:11 -0700
commit87e29f060b8fe7a1f8794955ded14617214af0ed (patch)
tree8df197debdafb3ad465d3fe02f2f9c7c081d77fe /res/layout
parentd7705a1b6595b57e250f21856c01bf734aa4d5fd (diff)
downloadandroid_packages_apps_ContactsCommon-87e29f060b8fe7a1f8794955ded14617214af0ed.tar.gz
android_packages_apps_ContactsCommon-87e29f060b8fe7a1f8794955ded14617214af0ed.tar.bz2
android_packages_apps_ContactsCommon-87e29f060b8fe7a1f8794955ded14617214af0ed.zip
Adding common contact list view and card layout
Bug: 16553819 Bug: 17157006 Change-Id: I498b3de918a98b59e589e5216ea6ae3a0d3902a7
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/contact_list_card.xml39
-rw-r--r--res/layout/contact_list_content.xml1
-rw-r--r--res/layout/contact_tile_starred.xml2
-rw-r--r--res/layout/list_separator.xml2
4 files changed, 42 insertions, 2 deletions
diff --git a/res/layout/contact_list_card.xml b/res/layout/contact_list_card.xml
new file mode 100644
index 00000000..93786aa8
--- /dev/null
+++ b/res/layout/contact_list_card.xml
@@ -0,0 +1,39 @@
+<?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.
+-->
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="horizontal"
+ android:id="@+id/list_card"
+ android:visibility="invisible">
+ <View
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="@integer/contact_list_space_layout_weight"
+ android:background="@color/background_primary"/>
+ <View
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:background="@color/contact_all_list_background_color"
+ android:layout_weight="@integer/contact_list_card_layout_weight"
+ android:elevation="@dimen/contact_list_card_elevation"/>
+ <View
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="@integer/contact_list_space_layout_weight"
+ android:background="@color/background_primary"/>
+</LinearLayout>
diff --git a/res/layout/contact_list_content.xml b/res/layout/contact_list_content.xml
index 3a8ad7d2..1e5934c8 100644
--- a/res/layout/contact_list_content.xml
+++ b/res/layout/contact_list_content.xml
@@ -37,6 +37,7 @@
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1" >
+ <include layout="@layout/contact_list_card"/>
<view
class="com.android.contacts.common.list.PinnedHeaderListView"
android:id="@android:id/list"
diff --git a/res/layout/contact_tile_starred.xml b/res/layout/contact_tile_starred.xml
index 834cdc8c..777cc058 100644
--- a/res/layout/contact_tile_starred.xml
+++ b/res/layout/contact_tile_starred.xml
@@ -44,7 +44,7 @@
android:layout_height="wrap_content"
android:paddingTop="7dp"
android:textColor="#202020"
- android:textSize="16sp"
+ android:textSize="@dimen/contact_browser_list_item_text_size"
android:singleLine="true"
android:fadingEdge="horizontal"
android:fadingEdgeLength="3dip"
diff --git a/res/layout/list_separator.xml b/res/layout/list_separator.xml
index bb9f1d47..80abacbd 100644
--- a/res/layout/list_separator.xml
+++ b/res/layout/list_separator.xml
@@ -24,4 +24,4 @@
android:paddingBottom="15dip"
android:paddingTop="16dip"
android:textStyle="bold"
- android:textSize="24sp"/>
+ android:textSize="@dimen/frequently_contacted_title_text_size"/>