OSDN Git Service

Remove vertical and colored bars from editors.
authorJeff Sharkey <jsharkey@android.com>
Tue, 13 Oct 2009 23:27:09 +0000 (16:27 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 13 Oct 2009 23:27:09 +0000 (16:27 -0700)
Fixes http://b/2186076

res/layout/item_contact_editor.xml
res/layout/item_read_only_contact_editor.xml
res/values/colors.xml
src/com/android/contacts/ui/widget/ContactEditorView.java
src/com/android/contacts/ui/widget/ReadOnlyContactEditorView.java

index 76f063e..a7d5df5 100644 (file)
@@ -27,6 +27,7 @@
         android:id="@+id/color_bar"
         android:layout_width="4dip"
         android:layout_height="fill_parent"
+        android:visibility="gone"
     />
 
     <!-- The content -->
@@ -45,8 +46,9 @@
 
             <ImageView android:id="@+id/header_color_bar"
                 android:layout_width="fill_parent"
-                android:layout_height="2dip"
+                android:layout_height="4dip"
                 android:layout_marginBottom="5dip"
+                android:background="@color/edit_divider"
             />
 
             <ImageView android:id="@+id/header_icon"
index 370093c..0b1dc14 100644 (file)
@@ -27,6 +27,7 @@
         android:id="@+id/color_bar"
         android:layout_width="4dip"
         android:layout_height="fill_parent"
+        android:visibility="gone"
     />
 
     <!-- The content -->
@@ -45,8 +46,9 @@
 
             <ImageView android:id="@+id/header_color_bar"
                 android:layout_width="fill_parent"
-                android:layout_height="2dip"
+                android:layout_height="4dip"
                 android:layout_marginBottom="5dip"
+                android:background="@color/edit_divider"
             />
 
             <ImageView android:id="@+id/header_icon"
index 880c269..69ab865 100644 (file)
@@ -20,4 +20,6 @@
     <color name="sect_secondary">#4fff</color>
     <color name="quickcontact_disambig">#f2f2f2</color>
     <color name="quickcontact_disambig_divider">#afafaf</color>
+
+    <color name="edit_divider">#ff666666</color>
 </resources>
index d266edf..1720822 100644 (file)
@@ -161,8 +161,6 @@ public class ContactEditorView extends BaseContactEditorView implements OnClickL
         EntityModifier.ensureKindExists(state, source, StructuredName.CONTENT_ITEM_TYPE);
 
         // Fill in the header info
-        mHeaderColorBar.setBackgroundColor(source.getHeaderColor(mContext));
-        mSideBar.setBackgroundColor(source.getSideBarColor(mContext));
         ValuesDelta values = state.getValues();
         String accountName = values.getAsString(RawContacts.ACCOUNT_NAME);
         CharSequence accountType = source.getDisplayLabel(mContext);
index 745b061..a5f8eb6 100644 (file)
@@ -112,8 +112,6 @@ class ReadOnlyContactEditorView extends BaseContactEditorView {
         EntityModifier.ensureKindExists(state, source, StructuredName.CONTENT_ITEM_TYPE);
 
         // Fill in the header info
-        mHeaderColorBar.setBackgroundColor(source.getHeaderColor(mContext));
-        mSideBar.setBackgroundColor(source.getSideBarColor(mContext));
         ValuesDelta values = state.getValues();
         String accountName = values.getAsString(RawContacts.ACCOUNT_NAME);
         CharSequence accountType = source.getDisplayLabel(mContext);