Browse Source

添加任务日历时钟修改前备份 UI更新

gongpm 9 years ago
parent
commit
875b2873df

+ 6 - 3
WeiChat/src/main/java/com/sk/weichat/adapter/FriendSortAdapter.java

@@ -8,6 +8,7 @@ import android.view.View;
 import android.view.ViewGroup;
 import android.widget.BaseAdapter;
 import android.widget.ImageView;
+import android.widget.RelativeLayout;
 import android.widget.SectionIndexer;
 import android.widget.TextView;
 
@@ -29,6 +30,7 @@ public class FriendSortAdapter extends BaseAdapter implements SectionIndexer {
     private boolean isRefeshed;
     private boolean isFrist;
     private Map<Integer, String> isLog;
+
     public FriendSortAdapter(Context context, List<BaseSortModel<Friend>> sortFriends) {
         mContext = context;
         mSortFriends = sortFriends;
@@ -56,7 +58,6 @@ public class FriendSortAdapter extends BaseAdapter implements SectionIndexer {
     }
 
 
-
     @Override
     public View getView(final int position, View convertView, ViewGroup parent) {
         // 根据position获取分类的首字母的Char ascii值
@@ -71,8 +72,10 @@ public class FriendSortAdapter extends BaseAdapter implements SectionIndexer {
             Log.i("gongpengming", "position" + position + "@@为空");
             if (isFrist) {
                 isLog.put(position, "true");
-                convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color1));
-                ViewAlphaUtil.setViewAlpha(convertView);
+                RelativeLayout relativeLayout= (RelativeLayout) convertView.findViewById(R.id.rela);
+                relativeLayout.setBackgroundColor(mContext.getResources().getColor(R.color.item_color1));
+                if (relativeLayout!=null)
+                ViewAlphaUtil.setViewAlpha(relativeLayout);
             } else {
                 isLog.put(position, "false");
                 convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color2));

+ 1 - 0
WeiChat/src/main/java/com/sk/weichat/ui/erp/fragment/LinksManFragment.java

@@ -260,6 +260,7 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
         my_data_rl = (RelativeLayout) headview.findViewById(R.id.my_data_rl);
         my_friends_rl = (RelativeLayout) headview.findViewById(R.id.my_friends_rl);
         local_video_rl = (RelativeLayout) headview.findViewById(R.id.local_video_rl);
+
         ViewAlphaUtil.setViewAlpha(my_data_rl);
         ViewAlphaUtil.setViewAlpha(my_friend_rl);
 

+ 1 - 0
WeiChat/src/main/java/com/sk/weichat/ui/message/ChatActivity.java

@@ -48,6 +48,7 @@ import com.sk.weichat.util.CameraUtil;
 import com.sk.weichat.util.Constants;
 import com.sk.weichat.util.TimeUtils;
 import com.sk.weichat.util.ToastUtil;
+import com.sk.weichat.util.ViewAlphaUtil;
 import com.sk.weichat.view.ChatBottomView;
 import com.sk.weichat.view.ChatBottomView.ChatBottomListener;
 import com.sk.weichat.view.ChatContentView;

BIN
WeiChat/src/main/res/drawable-xhdpi/im_input_expression_press.png


BIN
WeiChat/src/main/res/drawable-xhdpi/im_input_more_pressed.png


BIN
WeiChat/src/main/res/drawable-xhdpi/im_send_button_inactive_u.png


+ 4 - 4
WeiChat/src/main/res/drawable/im_btn_emotion_bg.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector
   xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:state_focused="true" android:drawable="@drawable/im_input_expression_press" />
-    <item android:state_selected="true" android:drawable="@drawable/im_input_expression_press" />
-    <item android:state_pressed="true" android:drawable="@drawable/im_input_expression_press" />
-    <item android:drawable="@drawable/im_input_expression_nor_u" />
+    <item android:state_focused="true" android:drawable="@drawable/im_input_expression_nor_u" />
+    <item android:state_selected="true" android:drawable="@drawable/im_input_expression_nor_u" />
+    <item android:state_pressed="true" android:drawable="@drawable/im_input_expression_nor_u" />
+    <item android:drawable="@drawable/im_input_expression_press" />
 </selector>

+ 3 - 2
WeiChat/src/main/res/layout/chat.xml

@@ -4,7 +4,7 @@
     android:layout_width="fill_parent"
     android:orientation="vertical"
     android:layout_height="fill_parent"
-    android:background="@color/white" >
+    android:background="@drawable/bg_main" >
    
     <RelativeLayout
         android:layout_width="fill_parent"
@@ -25,6 +25,7 @@
             android:id="@+id/chat_content_view"
             android:layout_width="fill_parent"
             android:layout_height="fill_parent"
+            android:background="@drawable/bg_main"
             android:layout_above="@+id/chat_bottom_view"
             android:layout_below="@+id/auth_state_tip"
             android:cacheColorHint="#00000000"
@@ -38,7 +39,7 @@
             android:layout_alignParentBottom="true"
             android:cacheColorHint="#6c7eb7"
             android:divider="#6c7eb7"
-            android:background="@color/white"
+            android:background="@color/bg_main"
             android:fadingEdge="none" />
     </RelativeLayout>
 

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

@@ -2,12 +2,11 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
-
     android:layout_alignParentBottom="true"
     android:orientation="vertical" >
 
     <RelativeLayout
-        android:background="@color/white"
+        android:background="@color/item_color1"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:layout_gravity="center_vertical"

+ 14 - 5
WeiChat/src/main/res/layout/fragment_me.xml

@@ -12,7 +12,7 @@
         <RelativeLayout
             android:id="@+id/info_rl"
             style="@style/IMTbleLine_UP_Me"
-            android:layout_height="60dp">
+            android:layout_height="65dp">
 
             <ImageView
                 android:id="@+id/avatar_img"
@@ -68,7 +68,7 @@
         <RelativeLayout
             android:id="@+id/my_data_rl"
             style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="9dp">
+            android:layout_marginTop="7dp">
 
             <TextView
                 android:layout_width="wrap_content"
@@ -86,6 +86,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -111,6 +112,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -136,6 +138,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -161,6 +164,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -169,7 +173,7 @@
         <RelativeLayout
             android:id="@+id/rl_company_change"
             style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="9dp">
+            android:layout_marginTop="7dp">
 
             <TextView
                 android:id="@+id/company_text"
@@ -196,6 +200,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -232,6 +237,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -269,6 +275,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -277,7 +284,7 @@
         <RelativeLayout
             android:id="@+id/my_b2b_rl"
             style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="9dp">
+            android:layout_marginTop="7dp">
 
             <TextView
                 android:id="@+id/b2b_text"
@@ -306,6 +313,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -324,7 +332,7 @@
         <RelativeLayout
             android:id="@+id/setting_rl"
             style="@style/IMTbleLine_UP_Me"
-            android:layout_marginTop="9dp">
+            android:layout_marginTop="7dp">
 
             <TextView
                 android:layout_width="wrap_content"
@@ -342,6 +350,7 @@
                 android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>

+ 7 - 2
WeiChat/src/main/res/layout/fragment_works.xml

@@ -24,10 +24,11 @@
                 android:textSize="14sp" />
 
             <ImageView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
+                android:layout_width="@dimen/next_width"
+                android:layout_height="@dimen/next_height"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -63,6 +64,7 @@
                 android:layout_height="wrap_content"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -88,6 +90,7 @@
                 android:layout_height="wrap_content"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -113,6 +116,7 @@
                 android:layout_height="wrap_content"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>
@@ -138,6 +142,7 @@
                 android:layout_height="wrap_content"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
+                android:alpha="0.26"
                 android:background="@drawable/set_list_next"
                 android:contentDescription="@string/app_name" />
         </RelativeLayout>

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

@@ -8,13 +8,14 @@
         android:id="@+id/catagory_title"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
-        android:background="@color/item_color1"
+        android:background="@color/text_hine"
         android:gravity="center_vertical"
         android:paddingLeft="15dip"
         android:textSize="10sp"
         android:textColor="@color/white" />
 
     <RelativeLayout
+        android:id="@+id/rela"
         android:layout_width="fill_parent"
         android:layout_height="64dp"
         android:minHeight="64dp"

+ 4 - 0
WeiChat/src/main/res/values/integer.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+</resources>

+ 1 - 1
build.gradle

@@ -4,7 +4,7 @@ buildscript {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:1.3.0'
+        classpath 'com.android.tools.build:gradle:2.0.0'
     }
 }
 allprojects {