Explorar o código

fix 美化通讯录界面分割线,统一app列表分割线样式,解决样式不统一的情况。

Arison %!s(int64=8) %!d(string=hai) anos
pai
achega
0c90ee0826

+ 1 - 1
WeiChat/src/main/res/layout/contact_item.xml

@@ -26,7 +26,7 @@
         android:layout_height="2px"
         android:layout_below="@id/tag_tv"
         android:background="@color/item_line"
-        android:visibility="visible"
+        android:visibility="gone"
         />
 
     <ImageView

+ 2 - 1
WeiChat/src/main/res/layout/header_fragment_contact.xml

@@ -2,6 +2,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:background="@color/me_menu_item_normal"
     android:orientation="vertical">
 
     <com.core.widget.VoiceSearchView
@@ -73,7 +74,7 @@
 
     <View
         android:layout_width="match_parent"
-        android:layout_height="2px"
+        android:layout_height="@dimen/line"
         android:background="@color/item_line" />
 
 

+ 8 - 4
app_core/common/src/main/res/layout/fragment_contacts.xml

@@ -1,13 +1,17 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-                android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:background="@drawable/bg_main">
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="#ebe9e9">
 
     <com.handmark.pulltorefresh.library.PullToRefreshListView
         android:id="@+id/refreshListView"
         style="@style/normalListView"
-        />
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:dividerHeight="@dimen/line"
+        android:divider="@color/item_line"
+        android:background="@color/transparent" />
 
     <TextView
         android:id="@+id/dialogTV"

+ 4 - 9
app_core/common/src/main/res/layout/header_fragment_contact.xml

@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
+    android:layout_height="wrap_content"
+    android:background="@color/me_menu_item_normal"
     android:orientation="vertical">
 
     <com.core.widget.VoiceSearchView
@@ -11,7 +12,8 @@
     <LinearLayout
         android:id="@+id/click_ll"
         android:layout_width="match_parent"
-        android:layout_height="80dp"
+        android:layout_height="wrap_content"
+         android:padding="10dp"
         android:gravity="center"
         android:orientation="horizontal">
 
@@ -70,11 +72,4 @@
             android:text="@string/contact_often"
             android:textSize="16sp"/>
     </LinearLayout>
-
-    <View
-        android:layout_width="match_parent"
-        android:layout_height="2px"
-        android:background="@color/item_line" />
-
-
 </LinearLayout>

+ 1 - 1
app_core/common/src/main/res/values/styles.xml

@@ -845,7 +845,7 @@
         <item name="android:dividerHeight">2px</item>
     </style>
     <style name="normalListView" parent="ListViewBasic">
-        <item name="android:dividerHeight">@dimen/line</item>
+        <item name="android:dividerHeight">1dp</item>
     </style>
     <style name="ListViewBasic">
         <item name="android:layout_width">match_parent</item>