OSDN Git Service

Tweak the ContactsHeaderWidget to match the newest specs.
authorEvan Millar <emillar@google.com>
Thu, 20 Aug 2009 01:58:32 +0000 (18:58 -0700)
committerEvan Millar <emillar@google.com>
Thu, 20 Aug 2009 18:11:12 +0000 (11:11 -0700)
core/res/res/drawable/contact_picture_bg.9.png [deleted file]
core/res/res/drawable/fasttrack_badge_middle.xml [new file with mode: 0644]
core/res/res/drawable/fasttrack_badge_middle_normal.9.png [new file with mode: 0644]
core/res/res/drawable/fasttrack_badge_middle_pressed.9.png [new file with mode: 0644]
core/res/res/layout-ja/contact_header_name.xml
core/res/res/layout/contact_header.xml
core/res/res/layout/contact_header_name.xml

diff --git a/core/res/res/drawable/contact_picture_bg.9.png b/core/res/res/drawable/contact_picture_bg.9.png
deleted file mode 100644 (file)
index ae9c709..0000000
Binary files a/core/res/res/drawable/contact_picture_bg.9.png and /dev/null differ
diff --git a/core/res/res/drawable/fasttrack_badge_middle.xml b/core/res/res/drawable/fasttrack_badge_middle.xml
new file mode 100644 (file)
index 0000000..6df230a
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 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.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item
+        android:state_focused="false"
+        android:state_selected="false"
+        android:state_pressed="false"
+        android:drawable="@drawable/fasttrack_badge_middle_normal" />
+
+    <item
+        android:state_pressed="true"
+        android:drawable="@drawable/fasttrack_badge_middle_pressed" />
+
+</selector>
\ No newline at end of file
diff --git a/core/res/res/drawable/fasttrack_badge_middle_normal.9.png b/core/res/res/drawable/fasttrack_badge_middle_normal.9.png
new file mode 100644 (file)
index 0000000..1ac6ef9
Binary files /dev/null and b/core/res/res/drawable/fasttrack_badge_middle_normal.9.png differ
diff --git a/core/res/res/drawable/fasttrack_badge_middle_pressed.9.png b/core/res/res/drawable/fasttrack_badge_middle_pressed.9.png
new file mode 100644 (file)
index 0000000..33921ba
Binary files /dev/null and b/core/res/res/drawable/fasttrack_badge_middle_pressed.9.png differ
index 20df5c6..9dceeb6 100644 (file)
@@ -27,8 +27,8 @@
         android:layout_height="wrap_content"
         android:singleLine="true"
         android:ellipsize="end"
-       android:textAppearance="?android:attr/textAppearanceLargeInverse"
-       android:textColor="@android:color/secondary_text_light"
+        android:textAppearance="?android:attr/textAppearanceMedium"
+        android:textStyle="bold"
         />
 
     <TextView android:id="@+id/phonetic_name"
@@ -36,8 +36,7 @@
         android:layout_height="wrap_content"
         android:singleLine="true"
         android:ellipsize="end"
-       android:textAppearance="?android:attr/textAppearanceSmallInverse"
-       android:textColor="@android:color/secondary_text_light"
+        android:textAppearance="?android:attr/textAppearanceSmall"
         />
 
 </LinearLayout>
index 73e379b..8c1957d 100644 (file)
 -->
 
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-       android:id="@+id/banner"
+    android:id="@+id/banner"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:orientation="horizontal"
-    android:background="@drawable/contact_header_bg"
+    android:background="@drawable/title_bar_tall"
     android:paddingRight="5dip"
     android:gravity="center_vertical">
     
     <ImageView android:id="@+id/photo"
-        android:layout_width="64dip"
+        android:layout_width="56dip"
         android:layout_height="64dip"
-        android:layout_marginRight="7dip"
-        android:layout_marginLeft="2dip"
+        android:layout_marginRight="10dip"
+        android:layout_marginLeft="10dip"
         android:scaleType="fitCenter"
-        android:background="@drawable/contact_picture_bg"/>
+        android:background="@drawable/fasttrack_badge_middle"/>
     
     <LinearLayout
         android:layout_width="0dip"
-        android:layout_height="fill_parent"
+        android:layout_height="wrap_content"
         android:layout_weight="1"
+        android:layout_marginTop="5dip"
         android:orientation="vertical">
 
         <!-- "Name" field is locale-specific. -->
 
         <TextView android:id="@+id/status"
             android:layout_width="fill_parent"
-            android:layout_height="wrap_content"
+            android:layout_height="0dip"
+            android:layout_weight="1"
             android:textAppearance="?android:attr/textAppearanceSmall"
-            android:maxLines="2"/>
+            android:maxLines="2"
+            android:ellipsize="end"/>
                 
     </LinearLayout>
 
index 9039702..9a56fb4 100644 (file)
@@ -19,8 +19,8 @@
     android:id="@+id/name"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
-    android:textAppearance="?android:attr/textAppearanceMediumInverse"
-    android:textColor="@android:color/secondary_text_light"
+    android:textAppearance="?android:attr/textAppearanceMedium"
+    android:textStyle="bold"
     android:singleLine="true"
     android:ellipsize="end"
     />