Redesigning how Favorite contacts are displayed
Changing to muli columns with big pictures
Change-Id: I582f4dae52229920b20d39b565a1a9fd84b28529
diff --git a/res/layout/contact_tile_row_regular.xml b/res/layout/contact_tile_row_regular.xml
new file mode 100644
index 0000000..79b670a
--- /dev/null
+++ b/res/layout/contact_tile_row_regular.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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:id="@+id/contactTile_row_regular"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <RelativeLayout android:id="@+id/contactTile_row_left"
+ style="@style/ContactTileRegularLayout">
+ <ImageView android:id="@+id/contactTile_left_image"
+ style="@style/ContactTileRegularImage" />
+ <TextView android:id="@+id/contactTile_left_name"
+ style="@style/ContactTileRegularText" />
+ </RelativeLayout>
+
+ <RelativeLayout android:id="@+id/contactTile_row_right"
+ style="@style/ContactTileRegularLayout">
+ <ImageView android:id="@+id/contactTile_right_image"
+ style="@style/ContactTileRegularImage" />
+ <TextView android:id="@+id/contactTile_right_name"
+ style="@style/ContactTileRegularText" />
+ </RelativeLayout>
+
+</LinearLayout>
diff --git a/res/layout/strequent_fragment.xml b/res/layout/strequent_fragment.xml
new file mode 100644
index 0000000..348fd0c
--- /dev/null
+++ b/res/layout/strequent_fragment.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+
+<ListView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/strequent_list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:divider="@null"
+/>
diff --git a/res/values/colors.xml b/res/values/colors.xml
index ace8869..9a60815 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -48,4 +48,8 @@
<!-- Color of the text indicating the type of entry (e.g. Home, Work etc) -->
<color name="detail_header_view_text_color">#FFFFFF</color>
+
+ <!-- Color of the text foreground and background of Regular Sized ContactTile -->
+ <color name="contact_tile_regular_text">#2B1B17</color>
+ <color name="contact_tile_regular_text_background">#FFFFFF</color>
</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index d57cb10..f18a340 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -274,4 +274,52 @@
<item name="android:gravity">center_vertical</item>
<item name="android:paddingTop">5dip</item>
</style>
+
+ <style name="ContactTileRegularText">
+ <item name="android:layout_width">fill_parent</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_alignParentBottom">true</item>
+ <item name="android:background">@color/contact_tile_regular_text</item>
+ <item name="android:textColor">@color/contact_tile_regular_text_background</item>
+ <item name="android:textSize">17sp</item>
+ <item name="android:alpha">0.7</item>
+ <item name="android:gravity">center_horizontal</item>
+ </style>
+
+ <style name="ContactTileRegularImage">
+ <item name="android:layout_width">160dip</item>
+ <item name="android:layout_height">160dip</item>
+ <item name="android:layout_alignParentTop">true</item>
+ <item name="android:layout_alignParentLeft">true</item>
+ <item name="android:scaleType">centerCrop</item>
+ </style>
+
+ <style name="ContactTileRegularLayout">
+ <item name="android:layout_width">155dip</item>
+ <item name="android:layout_height">160dip</item>
+ <item name="android:focusable">true</item>
+ <item name="android:padding">5dip</item>
+ <item name="android:background">@drawable/list_selector</item>
+ </style>
+
+ <style name="ContactTileSmallText">
+ <item name="android:layout_width">80dip</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:paddingTop">8dip</item>
+ <item name="android:paddingLeft">4dip</item>
+ </style>
+
+ <style name="ContactTileSmallImage">
+ <item name="android:layout_width">80dip</item>
+ <item name="android:layout_height">80dip</item>
+ <item name="android:scaleType">centerCrop</item>
+ </style>
+
+ <style name="ContactTileSmallLayout">
+ <item name="android:layout_width">160dip</item>
+ <item name="android:layout_height">80dip</item>
+ <item name="android:focusable">true</item>
+ <item name="android:padding">5dip</item>
+ <item name="android:background">@drawable/list_selector</item>
+ </style>
</resources>