gongpm 10 лет назад
Родитель
Сommit
228405b9bd

+ 1 - 1
WeiChat/src/main/java/com/sk/weichat/view/ChatBottomView.java

@@ -226,7 +226,7 @@ public class ChatBottomView extends LinearLayout implements View.OnClickListener
 		} else {
 			mChatEdit.setVisibility(View.VISIBLE);
 			mRecordBtn.setVisibility(View.GONE);
-			mVoiceImgBtn.setImageResource(R.drawable.im_voice_nor);
+			mVoiceImgBtn.setImageResource(R.drawable.im_send_button_inactive_u);
 		}
 	}
 

+ 15 - 10
WeiChat/src/main/res/layout/chat_bottom.xml

@@ -3,15 +3,15 @@
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:layout_alignParentBottom="true"
-    android:orientation="vertical" >
+    android:orientation="vertical">
 
     <RelativeLayout
-        android:background="@color/item_color1"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:layout_gravity="center_vertical"
+        android:background="@color/item_color1"
         android:orientation="horizontal"
-        android:padding="3dp" >
+        android:padding="3dp">
 
         <LinearLayout
             android:id="@+id/left_layout"
@@ -20,8 +20,10 @@
             android:layout_alignParentLeft="true"
             android:layout_centerVertical="true"
             android:gravity="center_vertical"
-            android:orientation="horizontal" >
-
+            android:orientation="horizontal">
+            <View
+                android:layout_width="5dp"
+                android:layout_height="1dp" />
             <ImageButton
                 android:id="@+id/emotion_btn"
                 android:layout_width="wrap_content"
@@ -29,6 +31,10 @@
                 android:background="@drawable/im_btn_emotion_bg"
                 android:contentDescription="@string/app_name" />
 
+            <View
+                android:layout_width="5dp"
+                android:layout_height="1dp" />
+
             <ImageButton
                 android:id="@+id/more_btn"
                 android:layout_width="wrap_content"
@@ -46,7 +52,7 @@
             android:layout_toLeftOf="@+id/right_layout"
             android:layout_toRightOf="@+id/left_layout"
             android:focusable="true"
-            android:focusableInTouchMode="true" >
+            android:focusableInTouchMode="true">
 
             <EditText
                 android:id="@+id/chat_edit"
@@ -78,7 +84,7 @@
             android:layout_alignParentRight="true"
             android:layout_centerVertical="true"
             android:gravity="center_vertical"
-            android:orientation="horizontal" >
+            android:orientation="horizontal">
 
             <Button
                 android:id="@+id/send_btn"
@@ -103,10 +109,9 @@
 
     <FrameLayout
         android:layout_width="fill_parent"
-        android:layout_height="wrap_content" >
+        android:layout_height="wrap_content">
 
-        <com.sk.weichat.view.ChatFaceView
-            xmlns:chatface="http://schemas.android.com/apk/res-auto"
+        <com.sk.weichat.view.ChatFaceView xmlns:chatface="http://schemas.android.com/apk/res-auto"
             android:id="@+id/chat_face_view"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"

+ 68 - 33
WeiChat/src/main/res/layout/fragment_me.xml

@@ -11,13 +11,12 @@
 
         <RelativeLayout
             android:id="@+id/info_rl"
-            style="@style/IMTbleLine_UP_Me"
-            android:layout_height="65dp">
+            style="@style/IMTbleLine_UP_">
 
             <ImageView
                 android:id="@+id/avatar_img"
-                android:layout_width="50dp"
-                android:layout_height="50dp"
+                android:layout_width="60dp"
+                android:layout_height="60dp"
                 android:layout_alignParentLeft="true"
                 android:layout_centerVertical="true"
                 android:contentDescription="@string/app_name"
@@ -41,7 +40,7 @@
                     android:layout_toLeftOf="@+id/phone_number_tv"
                     android:singleLine="true"
                     android:textColor="@color/text_main"
-                    android:textSize="@dimen/BigTextSize" />
+                    android:textSize="@dimen/text_main" />
 
                 <TextView
                     android:id="@+id/phone_number_tv"
@@ -51,7 +50,7 @@
                     android:layout_centerVertical="true"
                     android:singleLine="true"
                     android:textColor="@color/text_hine"
-                    android:textSize="@dimen/SmallerTextSize" />
+                    android:textSize="@dimen/text_hine" />
             </RelativeLayout>
 
             <ImageView
@@ -64,11 +63,14 @@
                 android:contentDescription="@string/app_name"
                 android:visibility="invisible" />
         </RelativeLayout>
-
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
         <RelativeLayout
             android:id="@+id/my_data_rl"
             style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="7dp">
+           >
 
             <TextView
                 android:layout_width="wrap_content"
@@ -79,7 +81,7 @@
                 android:gravity="center"
                 android:text="@string/my_data"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <ImageView
                 android:layout_width="@dimen/next_width"
@@ -91,10 +93,14 @@
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
 
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
+
         <RelativeLayout
             android:id="@+id/my_friend_rl"
-            style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="2dp">
+            style="@style/IMTbleLine_UP_Me">
 
             <TextView
                 android:layout_width="wrap_content"
@@ -105,7 +111,7 @@
                 android:gravity="center"
                 android:text="@string/my_friend"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <ImageView
                 android:layout_width="@dimen/next_width"
@@ -117,10 +123,14 @@
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
 
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
+
         <RelativeLayout
             android:id="@+id/my_space_rl"
-            style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="2dp">
+            style="@style/IMTbleLine_UP_Me">
 
             <TextView
                 android:layout_width="wrap_content"
@@ -131,7 +141,7 @@
                 android:gravity="center"
                 android:text="@string/my_space"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <ImageView
                 android:layout_width="@dimen/next_width"
@@ -143,10 +153,14 @@
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
 
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
+
         <RelativeLayout
             android:id="@+id/local_video_rl"
-            style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="2dp">
+            style="@style/IMTbleLine_UP_Me">
 
             <TextView
                 android:layout_width="wrap_content"
@@ -157,7 +171,7 @@
                 android:gravity="center"
                 android:text="@string/local_video"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <ImageView
                 android:layout_width="@dimen/next_width"
@@ -169,6 +183,10 @@
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
 
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
         <!--公司-->
         <RelativeLayout
             android:id="@+id/rl_company_change"
@@ -185,14 +203,15 @@
                 android:gravity="center"
                 android:text="@string/change_company"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <TextView
                 android:id="@+id/company_tv"
                 style="@style/IMTbleLine_TextValue"
                 android:layout_toLeftOf="@+id/company_arrow_img"
                 android:layout_toRightOf="@+id/company_text"
-                android:textColor="@color/text_hine" />
+                android:textColor="@color/text_hine"
+                android:textSize="@dimen/text_hine" />
 
             <ImageView
                 android:id="@+id/company_arrow_img"
@@ -205,12 +224,15 @@
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
 
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
 
         <!--账套-->
         <RelativeLayout
             android:id="@+id/rl_master_change"
-            style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="2dp">
+            style="@style/IMTbleLine_UP_Me">
 
             <TextView
                 android:id="@+id/master_text"
@@ -222,14 +244,15 @@
                 android:gravity="center"
                 android:text="@string/change_master"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <TextView
                 android:id="@+id/master_tv"
                 style="@style/IMTbleLine_TextValue"
                 android:layout_toLeftOf="@+id/master_arrow_img"
                 android:layout_toRightOf="@+id/master_text"
-                android:textColor="@color/text_hine" />
+                android:textColor="@color/text_hine"
+                android:textSize="@dimen/text_hine" />
 
             <ImageView
                 android:id="@+id/master_arrow_img"
@@ -242,11 +265,14 @@
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
 
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
 
         <RelativeLayout
             android:id="@+id/my_erp_rl"
-            style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="2dp">
+            style="@style/IMTbleLine_UP_Me">
 
             <TextView
                 android:id="@+id/uas_text"
@@ -258,7 +284,7 @@
                 android:gravity="center"
                 android:text="@string/my_uas"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <TextView
                 android:id="@+id/tv_uas_login"
@@ -267,7 +293,7 @@
                 android:layout_toRightOf="@+id/uas_text"
                 android:text="未登录"
                 android:textColor="@color/text_hine"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_hine" />
 
             <ImageView
                 android:id="@+id/uas_arrow_img"
@@ -280,6 +306,10 @@
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
 
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
 
         <RelativeLayout
             android:id="@+id/my_b2b_rl"
@@ -296,7 +326,7 @@
                 android:gravity="center"
                 android:text="@string/my_b2b"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <TextView
                 android:id="@+id/tv_b2b_login"
@@ -305,7 +335,7 @@
                 android:layout_toRightOf="@+id/b2b_text"
                 android:text="未登录"
                 android:textColor="@color/text_hine"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_hine" />
 
             <ImageView
                 android:id="@+id/b2b_arrow_img"
@@ -326,8 +356,8 @@
 
         <View
             android:layout_width="match_parent"
-            android:layout_height="1dp" />
-
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
 
         <RelativeLayout
             android:id="@+id/setting_rl"
@@ -343,7 +373,7 @@
                 android:gravity="center"
                 android:text="@string/setting"
                 android:textColor="@color/text_main"
-                android:textSize="14sp" />
+                android:textSize="@dimen/text_main" />
 
             <ImageView
                 android:layout_width="@dimen/next_width"
@@ -354,6 +384,11 @@
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
+
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="1dp"
+            android:background="@color/item_line" />
     </LinearLayout>
 
 </ScrollView>

+ 1 - 0
WeiChat/src/main/res/layout/fragment_message.xml

@@ -7,6 +7,7 @@
     android:orientation="vertical" >
 
     <RelativeLayout
+        android:background="@drawable/bg_bar"
         android:layout_width="match_parent"
         android:layout_height="48dp"
         android:orientation="horizontal"

+ 6 - 6
WeiChat/src/main/res/layout/fragment_works.xml

@@ -35,8 +35,8 @@
 
         <RelativeLayout
             android:id="@+id/my_friend_rl"
-            style="@style/IMTbleLine_UP"
-            android:layout_marginTop="2dp">
+            style="@style/IMTbleLine"
+            android:layout_marginTop="7dp">
 
             <TextView
                 android:id="@+id/tv_zone"
@@ -72,7 +72,7 @@
         <RelativeLayout
             android:id="@+id/rl_uas_sys"
             style="@style/IMTbleLine"
-            android:layout_marginTop="2dp">
+            android:layout_marginTop="7dp">
 
             <TextView
                 android:layout_width="wrap_content"
@@ -97,8 +97,8 @@
 
         <RelativeLayout
             android:id="@+id/setting_rl"
-            style="@style/IMTbleLine_UP"
-            android:layout_marginTop="2dp">
+            style="@style/IMTbleLine"
+            android:layout_marginTop="7dp">
 
             <TextView
                 android:layout_width="wrap_content"
@@ -124,7 +124,7 @@
         <RelativeLayout
             android:id="@+id/goods_find"
             style="@style/IMTbleLine"
-            android:layout_marginTop="2dp">
+            android:layout_marginTop="1dp">
 
             <TextView
                 android:layout_width="wrap_content"

+ 1 - 1
WeiChat/src/main/res/values/colors.xml

@@ -4,7 +4,7 @@
     <color name="item_color1">#30a0a0a0</color>
     <color name="item_color2">@color/white</color>
     <color name="item_text">#cca0a0a0</color>
-    <color name="item_line">#a0a0a0</color>
+    <color name="item_line">#BCBBC0</color>
     <color name="antionbarcolor">#646464</color>
     <color name="wirtehine">#a3b2cf</color>
     <color name="text_main">#3c3c3c</color>

+ 5 - 1
WeiChat/src/main/res/values/dimens.xml

@@ -1,7 +1,11 @@
 <resources>
     <dimen name="next_width">10.0dip</dimen>
     <dimen name="next_height">20.0dip</dimen>
-    <dimen name="item_height">65.0dip</dimen>
+    <dimen name="text_main">17.0dip</dimen>
+    <dimen name="text_hine">14.0dip</dimen>
+
+    <dimen name="item_height">60.0dip</dimen>
+    <dimen name="item_me_height">80.0dip</dimen>
     <dimen name="bar_height">80.0dip</dimen>
     <dimen name="item_img_height">45.0dip</dimen>
     <dimen name="item_img_width">45.0dip</dimen>

+ 8 - 1
WeiChat/src/main/res/values/styles.xml

@@ -151,6 +151,14 @@
         <item name="android:paddingRight">5dp</item>
     </style>
 
+    <style name="IMTbleLine_UP_">
+        <item name="android:background">@color/item_color1</item>
+        <item name="android:layout_width">match_parent</item>
+        <item name="android:layout_height">@dimen/item_me_height</item>
+        <item name="android:minHeight">60dp</item>
+        <item name="android:paddingLeft">9dp</item>
+        <item name="android:paddingRight">5dp</item>
+    </style>
     <style name="IMTbleLine_UP_Me">
         <item name="android:background">@color/item_color1</item>
         <item name="android:layout_width">match_parent</item>
@@ -179,7 +187,6 @@
     </style>
 
     <style name="IMTbleLine_TextValue">
-        <item name="android:textSize">@dimen/NormalTextSize</item>
         <item name="android:textColorHint">@color/grey</item>
         <item name="android:textColor">@color/black</item>
         <item name="android:gravity">right</item>