Moon 6 tahun lalu
induk
melakukan
0816dc1cf6
23 mengubah file dengan 267 tambahan dan 376 penghapusan
  1. 1 0
      app/src/main/java/com/silence/commonframe/activity/mine/activity/HistoryActivity.java
  2. 4 5
      app/src/main/java/com/silence/commonframe/adapter/mine/HistoryAdapter.java
  3. 1 1
      app/src/main/java/com/silence/commonframe/adapter/mine/NewLinkManAdapter.java
  4. 1 1
      app/src/main/java/com/silence/commonframe/base/basemvp/TitleBar.java
  5. TEMPAT SAMPAH
      app/src/main/res/drawable-hdpi/iknow_blue.png
  6. TEMPAT SAMPAH
      app/src/main/res/drawable-hdpi/iknow_gray.png
  7. TEMPAT SAMPAH
      app/src/main/res/drawable-mdpi/iknow_blue.png
  8. TEMPAT SAMPAH
      app/src/main/res/drawable-mdpi/iknow_gray.png
  9. TEMPAT SAMPAH
      app/src/main/res/drawable-xhdpi/iknow_blue.png
  10. TEMPAT SAMPAH
      app/src/main/res/drawable-xhdpi/iknow_gray.png
  11. TEMPAT SAMPAH
      app/src/main/res/drawable-xxhdpi/iknow_blue.png
  12. TEMPAT SAMPAH
      app/src/main/res/drawable-xxhdpi/iknow_gray.png
  13. TEMPAT SAMPAH
      app/src/main/res/drawable-xxxhdpi/iknow_blue.png
  14. TEMPAT SAMPAH
      app/src/main/res/drawable-xxxhdpi/iknow_gray.png
  15. 2 0
      app/src/main/res/layout/activity_search_message.xml
  16. 52 80
      app/src/main/res/layout/activity_setup.xml
  17. 24 22
      app/src/main/res/layout/activity_sitedetail.xml
  18. 29 46
      app/src/main/res/layout/fragment_mine.xml
  19. 81 158
      app/src/main/res/layout/item_item_firealarm.xml
  20. 26 33
      app/src/main/res/layout/linkmanrececlyview_item.xml
  21. 39 30
      app/src/main/res/layout/recyclerview_item_minedevice.xml
  22. TEMPAT SAMPAH
      app/src/main/res/mipmap-xhdpi/hsh_user_place_tel.png
  23. 7 0
      app/src/main/res/values/styles.xml

+ 1 - 0
app/src/main/java/com/silence/commonframe/activity/mine/activity/HistoryActivity.java

@@ -119,6 +119,7 @@ public class HistoryActivity extends BaseActivity implements HistoryListener.Vie
     @Override
     public void onReadSuccess(int position) {
         mAdapter.setKnow("1",position);
+        onFile("处理成功");
     }
 
     @Override

+ 4 - 5
app/src/main/java/com/silence/commonframe/adapter/mine/HistoryAdapter.java

@@ -2,8 +2,7 @@ package com.silence.commonframe.adapter.mine;
 
 import android.graphics.Color;
 import android.support.annotation.Nullable;
-import android.view.View;
-import android.widget.Button;
+import android.widget.ImageView;
 import android.widget.TextView;
 
 import com.chad.library.adapter.base.BaseQuickAdapter;
@@ -31,7 +30,7 @@ public class HistoryAdapter extends BaseQuickAdapter<FireAlarmModel.DataBean, Ba
         TextView tvLocation = helper.itemView.findViewById(R.id.place);
         TextView tvTime = helper.itemView.findViewById(R.id.time);
         TextView tvAddress = helper.itemView.findViewById(R.id.place1);
-        Button btKnow = helper.itemView.findViewById(R.id.id_know);
+        ImageView btKnow = helper.itemView.findViewById(R.id.id_know);
 
         String deviceName = data.getDeviceName();
         String deployment = "区域名:" + data.getDeployment();
@@ -58,9 +57,9 @@ public class HistoryAdapter extends BaseQuickAdapter<FireAlarmModel.DataBean, Ba
         }
 
         if ("0".equals(listData.get(helper.getAdapterPosition()).getIfRead())){
-            btKnow.setVisibility(View.VISIBLE);
+            btKnow.setImageResource(R.drawable.iknow_blue);
         }else {
-            btKnow.setVisibility(View.GONE);
+            btKnow.setImageResource(R.drawable.iknow_gray);
         }
 
         btKnow.setOnClickListener(v -> {

+ 1 - 1
app/src/main/java/com/silence/commonframe/adapter/mine/NewLinkManAdapter.java

@@ -20,7 +20,7 @@ public class NewLinkManAdapter extends BaseQuickAdapter<LinkManBean.DataBean,Bas
 
     @Override
     protected void convert(BaseViewHolder helper, LinkManBean.DataBean item) {
-        helper.setText(R.id.tv_name,item.getName());
+        helper.setText(R.id.tv_name,item.getName() + ":");
         helper.setText(R.id.tv_phone,item.getPhone());
         helper.getView(R.id.iv_delete).setOnClickListener(new View.OnClickListener() {
             @Override

+ 1 - 1
app/src/main/java/com/silence/commonframe/base/basemvp/TitleBar.java

@@ -107,7 +107,7 @@ public class TitleBar extends ViewGroup implements View.OnClickListener {
             mStatusBarHeight = getStatusBarHeight();
         }
         mActionPadding = dip2px(5);
-        mOutPadding = dip2px(10);
+        mOutPadding = dip2px(15);
         mHeight = dip2px(DEFAULT_TITLE_BAR_HEIGHT);
         initView(context);
     }

TEMPAT SAMPAH
app/src/main/res/drawable-hdpi/iknow_blue.png


TEMPAT SAMPAH
app/src/main/res/drawable-hdpi/iknow_gray.png


TEMPAT SAMPAH
app/src/main/res/drawable-mdpi/iknow_blue.png


TEMPAT SAMPAH
app/src/main/res/drawable-mdpi/iknow_gray.png


TEMPAT SAMPAH
app/src/main/res/drawable-xhdpi/iknow_blue.png


TEMPAT SAMPAH
app/src/main/res/drawable-xhdpi/iknow_gray.png


TEMPAT SAMPAH
app/src/main/res/drawable-xxhdpi/iknow_blue.png


TEMPAT SAMPAH
app/src/main/res/drawable-xxhdpi/iknow_gray.png


TEMPAT SAMPAH
app/src/main/res/drawable-xxxhdpi/iknow_blue.png


TEMPAT SAMPAH
app/src/main/res/drawable-xxxhdpi/iknow_gray.png


+ 2 - 0
app/src/main/res/layout/activity_search_message.xml

@@ -176,10 +176,12 @@
         </LinearLayout>
 
     </LinearLayout>
+
     <View
         android:layout_width="0dp"
         android:layout_height="0dp"
         android:layout_weight="1"/>
+
     <Button
         android:layout_width="match_parent"
         android:layout_height="45dp"

+ 52 - 80
app/src/main/res/layout/activity_setup.xml

@@ -4,7 +4,7 @@
     android:layout_height="match_parent"
     android:id="@+id/ll_header"
     android:orientation="vertical"
-    android:background="#e4e4e4">
+    android:background="@color/white">
 
     <com.silence.commonframe.base.basemvp.TitleBar
         android:id="@+id/base_title_bar"
@@ -19,18 +19,17 @@
         <RelativeLayout
             android:id="@+id/rl"
             android:layout_width="match_parent"
-            android:onClick="click"
-            android:background="#fff"
-            android:layout_height="40dp">
+            android:layout_height="wrap_content"
+            style="@style/list_margin_style"
+            android:onClick="click">
 
             <LinearLayout
                 android:layout_width="wrap_content"
-                android:layout_height="match_parent"
+                android:layout_height="wrap_content"
                 android:gravity="center_vertical"
                 android:layout_alignParentStart="true"
                 android:layout_alignParentLeft="true"
-                android:layout_centerVertical="true"
-                android:layout_marginLeft="10dp">
+                android:layout_centerVertical="true">
 
                 <ImageView
                     android:layout_width="16dp"
@@ -45,41 +44,37 @@
                     android:layout_marginLeft="10dp"
                     android:textColor="@color/myblack"
                     android:textSize="16sp"
-                    android:text="@string/message_management"
-                    />
+                    android:text="@string/message_management" />
 
             </LinearLayout>
 
             <ImageView
-                android:layout_width="14dp"
-                android:layout_height="14dp"
+                android:layout_width="16dp"
+                android:layout_height="16dp"
                 android:layout_alignParentEnd="true"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
-                android:layout_marginEnd="10dp"
-                android:layout_marginRight="10dp"
                 android:background="@mipmap/right" />
         </RelativeLayout>
 
         <View
             android:layout_width="match_parent"
             android:layout_height="8dp"
-            ></View>
+            android:background="@color/gray_line" />
 
         <RelativeLayout
             android:id="@+id/wx_bind"
             android:layout_width="match_parent"
-            android:background="#fff"
-            android:layout_height="40dp">
+            android:layout_height="wrap_content"
+            style="@style/list_margin_style">
 
             <LinearLayout
                 android:layout_width="wrap_content"
-                android:layout_height="match_parent"
+                android:layout_height="wrap_content"
                 android:gravity="center_vertical"
                 android:layout_alignParentStart="true"
                 android:layout_alignParentLeft="true"
-                android:layout_centerVertical="true"
-                android:layout_marginLeft="10dp">
+                android:layout_centerVertical="true">
 
                 <ImageView
                     android:layout_width="16dp"
@@ -93,8 +88,7 @@
                     android:layout_marginLeft="10dp"
                     android:textColor="@color/myblack"
                     android:textSize="16sp"
-                    android:text="@string/wx_bind"
-                    />
+                    android:text="@string/wx_bind" />
 
             </LinearLayout>
 
@@ -105,33 +99,29 @@
                 android:switchMinWidth="45dp"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
-                android:layout_marginRight="@dimen/margin_side"
                 android:track="@drawable/bg_switch_track"
                 android:thumb="@drawable/bg_switch_thumb"
                 />
 
         </RelativeLayout>
 
-        <View
+        <include
             android:id="@+id/view_message_line"
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:background="@color/mygray"/>
+            layout="@layout/bottom_line"/>
 
         <RelativeLayout
             android:id="@+id/wx_message_connect"
             android:layout_width="match_parent"
-            android:background="#fff"
-            android:layout_height="40dp">
+            android:layout_height="wrap_content"
+            style="@style/list_margin_style">
 
             <LinearLayout
                 android:layout_width="wrap_content"
-                android:layout_height="match_parent"
+                android:layout_height="wrap_content"
                 android:gravity="center_vertical"
                 android:layout_alignParentStart="true"
                 android:layout_alignParentLeft="true"
-                android:layout_centerVertical="true"
-                android:layout_marginLeft="10dp">
+                android:layout_centerVertical="true">
 
                 <ImageView
                     android:layout_width="16dp"
@@ -151,13 +141,11 @@
             </LinearLayout>
 
             <ImageView
-                android:layout_width="14dp"
-                android:layout_height="14dp"
+                android:layout_width="16dp"
+                android:layout_height="16dp"
                 android:layout_alignParentEnd="true"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
-                android:layout_marginEnd="10dp"
-                android:layout_marginRight="10dp"
                 android:background="@mipmap/right" />
 
         </RelativeLayout>
@@ -165,6 +153,7 @@
         <View
             android:layout_width="match_parent"
             android:layout_height="8dp"
+            android:background="@color/gray_line"
             android:id="@+id/view_message_connect"
             ></View>
 
@@ -172,18 +161,17 @@
 
     <RelativeLayout
         android:layout_width="match_parent"
-        android:layout_height="40dp"
+        android:layout_height="wrap_content"
         android:onClick="click1"
-        android:background="#fff">
+        style="@style/list_margin_style">
 
         <LinearLayout
             android:layout_width="wrap_content"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:gravity="center_vertical"
             android:layout_alignParentStart="true"
             android:layout_alignParentLeft="true"
-            android:layout_centerVertical="true"
-            android:layout_marginLeft="10dp">
+            android:layout_centerVertical="true">
 
             <ImageView
                 android:layout_width="16dp"
@@ -203,34 +191,29 @@
         </LinearLayout>
 
         <ImageView
-            android:layout_width="14dp"
-            android:layout_height="14dp"
+            android:layout_width="16dp"
+            android:layout_height="16dp"
             android:layout_alignParentEnd="true"
             android:layout_alignParentRight="true"
             android:layout_centerVertical="true"
-            android:layout_marginEnd="10dp"
-            android:layout_marginRight="10dp"
             android:background="@mipmap/right" />
     </RelativeLayout>
-    <View
-        android:layout_width="match_parent"
-        android:layout_height="1dp"
-        android:background="@color/mygray"></View>
+
+    <include layout="@layout/bottom_line"/>
 
     <RelativeLayout
         android:layout_width="match_parent"
-        android:layout_height="45dp"
+        android:layout_height="wrap_content"
         android:onClick="click3"
-        android:background="#fff">
+        style="@style/list_margin_style">
 
         <LinearLayout
             android:layout_width="wrap_content"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:gravity="center_vertical"
             android:layout_alignParentStart="true"
             android:layout_alignParentLeft="true"
-            android:layout_centerVertical="true"
-            android:layout_marginLeft="10dp">
+            android:layout_centerVertical="true">
 
             <ImageView
                 android:layout_width="16dp"
@@ -249,35 +232,29 @@
         </LinearLayout>
 
         <ImageView
-            android:layout_width="14dp"
-            android:layout_height="14dp"
+            android:layout_width="16dp"
+            android:layout_height="16dp"
             android:layout_alignParentEnd="true"
             android:layout_alignParentRight="true"
             android:layout_centerVertical="true"
-            android:layout_marginEnd="10dp"
-            android:layout_marginRight="10dp"
             android:background="@mipmap/right" />
     </RelativeLayout>
 
-    <View
-        android:layout_width="match_parent"
-        android:layout_height="1dp"
-        android:background="@color/mygray"></View>
+    <include layout="@layout/bottom_line"/>
 
     <RelativeLayout
         android:layout_width="match_parent"
-        android:layout_height="45dp"
+        android:layout_height="wrap_content"
         android:onClick="click4"
-        android:background="#fff">
+        style="@style/list_margin_style">
 
         <LinearLayout
             android:layout_width="wrap_content"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:gravity="center_vertical"
             android:layout_alignParentStart="true"
             android:layout_alignParentLeft="true"
-            android:layout_centerVertical="true"
-            android:layout_marginLeft="10dp">
+            android:layout_centerVertical="true">
 
             <ImageView
                 android:layout_width="16dp"
@@ -296,36 +273,31 @@
         </LinearLayout>
 
         <ImageView
-            android:layout_width="14dp"
-            android:layout_height="14dp"
+            android:layout_width="16dp"
+            android:layout_height="16dp"
             android:layout_alignParentEnd="true"
             android:layout_alignParentRight="true"
             android:layout_centerVertical="true"
-            android:layout_marginEnd="10dp"
-            android:layout_marginRight="10dp"
             android:background="@mipmap/right" />
     </RelativeLayout>
 
     <View
         android:layout_width="match_parent"
         android:layout_height="8dp"
+        android:background="@color/gray_line"
         ></View>
 
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="40dp"
-        android:background="#fff"
-        android:gravity="center"
-        android:onClick="click6">
         <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="match_parent"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
             android:gravity="center"
-            android:textSize="16sp"
+            android:onClick="click6"
+            android:textSize="18sp"
             android:textColor="#fa5656"
+            style="@style/list_margin_style"
             android:text="@string/login_out"/>
 
-    </LinearLayout>
+    <include layout="@layout/bottom_line"/>
 
     <View
         android:layout_width="match_parent"

+ 24 - 22
app/src/main/res/layout/activity_sitedetail.xml

@@ -4,33 +4,35 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:background="@color/white"
     android:orientation="vertical">
 
-        <com.silence.commonframe.base.basemvp.TitleBar
-            android:id="@+id/base_title_bar"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"/>
-        <com.scwang.smartrefresh.layout.SmartRefreshLayout
-            android:id="@+id/srl_refresh"
-            android:layout_below="@id/base_title_bar"
-            android:layout_width="match_parent"
-            android:layout_height="match_parent">
+    <com.silence.commonframe.base.basemvp.TitleBar
+        android:id="@+id/base_title_bar"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"/>
 
-            <LinearLayout
+    <com.scwang.smartrefresh.layout.SmartRefreshLayout
+        android:id="@+id/srl_refresh"
+        android:layout_below="@id/base_title_bar"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent">
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:orientation="vertical">
+            <android.support.v7.widget.RecyclerView
+                android:id="@+id/rv_list"
                 android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:orientation="vertical">
-                <android.support.v7.widget.RecyclerView
-                    android:id="@+id/rv_list"
-                    android:layout_width="match_parent"
-                    android:layout_height="0dp"
-                    android:layout_weight="1"
-                    android:scrollbars="vertical"
-                    tools:layout_editor_absoluteX="0dp"
-                    tools:layout_editor_absoluteY="68dp" />
+                android:layout_height="0dp"
+                android:layout_weight="1"
+                android:scrollbars="vertical"
+                tools:layout_editor_absoluteX="0dp"
+                tools:layout_editor_absoluteY="68dp" />
 
-            </LinearLayout>
+        </LinearLayout>
 
-        </com.scwang.smartrefresh.layout.SmartRefreshLayout>
+    </com.scwang.smartrefresh.layout.SmartRefreshLayout>
 
 </RelativeLayout>

+ 29 - 46
app/src/main/res/layout/fragment_mine.xml

@@ -3,6 +3,7 @@
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:background="@color/white"
     android:orientation="vertical">
 
     <RelativeLayout
@@ -81,17 +82,17 @@
 
         <RelativeLayout
             android:layout_width="match_parent"
-            android:layout_height="40dp"
+            android:layout_height="wrap_content"
+            style="@style/list_margin_style"
             android:id="@+id/rl">
 
             <LinearLayout
                 android:layout_width="wrap_content"
-                android:layout_height="match_parent"
+                android:layout_height="wrap_content"
                 android:gravity="center_vertical"
                 android:layout_alignParentStart="true"
                 android:layout_alignParentLeft="true"
-                android:layout_centerVertical="true"
-                android:layout_marginLeft="10dp">
+                android:layout_centerVertical="true">
 
                 <ImageView
                     android:layout_width="16dp"
@@ -111,35 +112,30 @@
             </LinearLayout>
 
             <ImageView
-                android:layout_width="14dp"
-                android:layout_height="14dp"
+                android:layout_width="16dp"
+                android:layout_height="16dp"
                 android:layout_alignParentEnd="true"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
-                android:layout_marginEnd="10dp"
-                android:layout_marginRight="10dp"
                 android:background="@mipmap/right" />
 
         </RelativeLayout>
 
-        <View
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:background="#cccccc"></View>
+        <include layout="@layout/bottom_line"/>
 
         <RelativeLayout
             android:layout_width="match_parent"
-            android:layout_height="40dp"
+            android:layout_height="wrap_content"
+            style="@style/list_margin_style"
             android:id="@+id/rl_fire">
 
             <LinearLayout
                 android:layout_width="wrap_content"
-                android:layout_height="match_parent"
+                android:layout_height="wrap_content"
                 android:gravity="center_vertical"
                 android:layout_alignParentStart="true"
                 android:layout_alignParentLeft="true"
-                android:layout_centerVertical="true"
-                android:layout_marginLeft="10dp">
+                android:layout_centerVertical="true">
 
                 <ImageView
                     android:layout_width="16dp"
@@ -158,35 +154,30 @@
             </LinearLayout>
 
             <ImageView
-                android:layout_width="14dp"
-                android:layout_height="14dp"
+                android:layout_width="16dp"
+                android:layout_height="16dp"
                 android:layout_alignParentEnd="true"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
-                android:layout_marginEnd="10dp"
-                android:layout_marginRight="10dp"
                 android:background="@mipmap/right" />
 
         </RelativeLayout>
 
-        <View
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:background="#cccccc"></View>
+        <include layout="@layout/bottom_line"/>
 
         <RelativeLayout
             android:layout_width="match_parent"
-            android:layout_height="40dp"
+            android:layout_height="wrap_content"
+            style="@style/list_margin_style"
             android:id="@+id/rl_qusstion">
 
             <LinearLayout
                 android:layout_width="wrap_content"
-                android:layout_height="match_parent"
+                android:layout_height="wrap_content"
                 android:gravity="center_vertical"
                 android:layout_alignParentStart="true"
                 android:layout_alignParentLeft="true"
-                android:layout_centerVertical="true"
-                android:layout_marginLeft="10dp">
+                android:layout_centerVertical="true">
 
                 <ImageView
                     android:layout_width="16dp"
@@ -205,35 +196,30 @@
             </LinearLayout>
 
             <ImageView
-                android:layout_width="14dp"
-                android:layout_height="14dp"
+                android:layout_width="16dp"
+                android:layout_height="16dp"
                 android:layout_alignParentEnd="true"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
-                android:layout_marginEnd="10dp"
-                android:layout_marginRight="10dp"
                 android:background="@mipmap/right" />
 
         </RelativeLayout>
 
-        <View
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:background="#cccccc"></View>
+        <include layout="@layout/bottom_line"/>
 
         <RelativeLayout
             android:layout_width="match_parent"
-            android:layout_height="40dp"
+            android:layout_height="wrap_content"
+            style="@style/list_margin_style"
             android:id="@+id/customer">
 
             <LinearLayout
                 android:layout_width="wrap_content"
-                android:layout_height="match_parent"
+                android:layout_height="wrap_content"
                 android:gravity="center_vertical"
                 android:layout_alignParentStart="true"
                 android:layout_alignParentLeft="true"
-                android:layout_centerVertical="true"
-                android:layout_marginLeft="10dp">
+                android:layout_centerVertical="true">
 
                 <ImageView
                     android:layout_width="16dp"
@@ -252,8 +238,8 @@
             </LinearLayout>
 
             <ImageView
-                android:layout_width="14dp"
-                android:layout_height="14dp"
+                android:layout_width="16dp"
+                android:layout_height="16dp"
                 android:layout_alignParentEnd="true"
                 android:layout_alignParentRight="true"
                 android:layout_centerVertical="true"
@@ -263,10 +249,7 @@
 
         </RelativeLayout>
 
-        <View
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:background="#cccccc"></View>
+        <include layout="@layout/bottom_line"/>
 
     </LinearLayout>
 

+ 81 - 158
app/src/main/res/layout/item_item_firealarm.xml

@@ -6,178 +6,101 @@
     android:layout_gravity="center"
     android:foreground="?android:attr/selectableItemBackground"
     card_view:cardBackgroundColor="@android:color/white"
-    card_view:cardCornerRadius="8dp"
-    android:layout_margin="5dp"
-    android:paddingBottom="5dp"
-    card_view:cardElevation="4dp"
-    >
+    card_view:cardCornerRadius="10dp"
+    android:layout_marginTop="@dimen/margin_side"
+    android:layout_marginLeft="@dimen/margin_side"
+    android:layout_marginRight="@dimen/margin_side"
+    card_view:cardElevation="4dp">
 
-    <LinearLayout
+    <RelativeLayout
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginLeft="5dp"
-        android:layout_marginTop="5dp"
-        android:layout_marginBottom="5dp"
-        android:layout_marginRight="10dp"
-        android:orientation="vertical">
-
-        <TextView
-            android:id="@+id/recycler_view_test_item_person_name_tv"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="独立烟感探测报警器"
-            android:textSize="18dp"
-            android:layout_marginBottom="2dp"/>
+        android:layout_height="match_parent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:layout_marginBottom="3dp"
-            android:orientation="horizontal">
+            android:layout_margin="@dimen/margin_side"
+            android:orientation="vertical">
 
-            <!--<ImageView-->
-            <!--android:layout_width="25dp"-->
-            <!--android:layout_height="25dp"-->
-            <!--android:layout_gravity="center"-->
-            <!--android:background="@mipmap/light" />-->
-
-            <LinearLayout
+            <TextView
+                android:id="@+id/recycler_view_test_item_person_name_tv"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:layout_marginTop="3dp"
-                android:layout_marginBottom="3dp"
-                android:orientation="vertical">
-
-
-                <TextView
-                    android:id="@+id/recycler_view_place"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:paddingLeft="5dp"
-                    android:text="区域名:海智中心3栋6"
-                    android:textSize="15dp" />
-
-
-                <RelativeLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:id="@+id/fire"
-                        android:layout_width="165dp"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="3dp"
-                        android:layout_marginBottom="3dp"
-                        android:layout_alignParentLeft="true"
-                        android:layout_centerVertical="true"
-                        android:paddingLeft="5dp"
-                        android:text="火警:正常"
-                        android:textSize="15dp" />
-
-                    <Button
-                        android:id="@+id/id_know"
-                        android:layout_width="65dp"
-                        android:layout_height="25dp"
-                        android:layout_alignParentRight="true"
-                        android:background="@mipmap/login"
-                        android:textColor="#fff"
-                        android:visibility="invisible"
-                        android:text="我知道了" />
-
-                </RelativeLayout>
-
-            </LinearLayout>
+                android:text="独立烟感探测报警器"
+                android:textStyle="bold"
+                android:textColor="@color/myblack"
+                android:textSize="18dp" />
 
+            <TextView
+                android:id="@+id/recycler_view_place"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="6dp"
+                android:paddingLeft="5dp"
+                android:text="区域名:海智中心3栋6"
+                android:textColor="@color/myblack"
+                android:textSize="16dp" />
+
+            <TextView
+                android:id="@+id/fire"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="6dp"
+                android:paddingLeft="5dp"
+                android:text="正常"
+                android:textColor="@color/myblack"
+                android:textSize="16dp" />
+
+            <TextView
+                android:id="@+id/number"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="6dp"
+                android:paddingLeft="5dp"
+                android:text="编号:123456789"
+                android:textColor="@color/myblack"
+                android:textSize="16dp" />
+
+            <TextView
+                android:id="@+id/place"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="6dp"
+                android:paddingLeft="5dp"
+                android:text="位置:杭州市区余杭海之中西"
+                android:textColor="@color/myblack"
+                android:textSize="16dp" />
+
+            <TextView
+                android:id="@+id/time"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="6dp"
+                android:paddingLeft="5dp"
+                android:text="时间:2018年11月9日"
+                android:textColor="@color/myblack"
+                android:textSize="16dp" />
+
+            <TextView
+                android:id="@+id/place1"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="6dp"
+                android:paddingLeft="5dp"
+                android:lineSpacingMultiplier="1.2"
+                android:text="详细地址:杭州市余杭区海智园3栋404"
+                android:textColor="@color/myblack"
+                android:textSize="16dp" />
 
         </LinearLayout>
 
-        <LinearLayout
-            android:layout_width="match_parent"
+        <ImageView
+            android:id="@+id/id_know"
+            android:layout_width="wrap_content"
             android:layout_height="wrap_content"
+            android:layout_alignParentRight="true"
+            android:src="@drawable/iknow_blue"/>
 
-            android:orientation="horizontal">
-
-            <LinearLayout
-                android:layout_width="0dp"
-                android:layout_height="match_parent"
-                android:layout_weight="4"
-                android:orientation="vertical">
-
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginBottom="2dp"
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:id="@+id/number"
-                        android:layout_width="match_parent"
-                        android:layout_height="wrap_content"
-                        android:paddingLeft="5dp"
-                        android:text="编号:123456789"
-                        android:textSize="15dp" />
-
-                </LinearLayout>
-
-
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="2dp"
-                    android:layout_marginBottom="2dp"
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:id="@+id/place"
-                        android:layout_width="match_parent"
-                        android:layout_height="wrap_content"
-                        android:paddingLeft="5dp"
-                        android:text="位置:杭州市区余杭海之中西"
-                        android:textSize="15dp" />
-
-                </LinearLayout>
-
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="2dp"
-                    android:layout_marginBottom="2dp"
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:id="@+id/time"
-                        android:layout_width="match_parent"
-                        android:layout_height="wrap_content"
-                        android:paddingLeft="5dp"
-                        android:text="时间:2018年11月9日"
-                        android:textSize="15dp" />
-
-                </LinearLayout>
-
-
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="2dp"
-                    android:layout_marginBottom="2dp"
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:id="@+id/place1"
-                        android:layout_width="match_parent"
-                        android:layout_height="wrap_content"
-                        android:paddingLeft="5dp"
-                        android:text="详细地址:杭州市余杭区海智园3栋404"
-                        android:textSize="15dp" />
-
-                </LinearLayout>
-
-
-            </LinearLayout>
-        </LinearLayout>
-
-    </LinearLayout>
+    </RelativeLayout>
 
 </android.support.v7.widget.CardView>

+ 26 - 33
app/src/main/res/layout/linkmanrececlyview_item.xml

@@ -1,43 +1,36 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:orientation="vertical"
+    android:paddingTop="@dimen/normal_side"
+    android:paddingBottom="@dimen/normal_side"
+    android:paddingLeft="@dimen/normal_side"
+    android:paddingRight="@dimen/normal_side"
+    android:gravity="center_vertical"
+    android:orientation="horizontal"
     android:layout_width="match_parent"
     android:layout_height="wrap_content">
 
-    <LinearLayout
-        android:layout_width="match_parent"
+    <TextView
+        android:id="@+id/tv_name"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_marginTop="10dp"
-        android:layout_marginBottom="10dp"
-        android:gravity="center_vertical"
-        android:orientation="horizontal">
+        android:gravity="center"
+        android:textColor="@color/myblack"
+        android:textSize="17sp" />
 
-        <TextView
-            android:id="@+id/tv_name"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:gravity="center"
-            android:layout_marginLeft="10dp"
-            android:textColor="@color/myblack"
-            android:textSize="17sp" />
-
-        <TextView
-            android:id="@+id/tv_phone"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_weight="1"
-            android:textSize="17sp"
-            android:layout_marginLeft="15dp"
-            android:textColor="@color/myblack" />
-
-        <ImageView
-            android:id="@+id/iv_delete"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:src="@mipmap/del"
-            android:scaleType="center"
-            android:layout_marginRight="10dp" />
+    <TextView
+        android:id="@+id/tv_phone"
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+        android:layout_weight="1"
+        android:textSize="17sp"
+        android:layout_marginLeft="5dp"
+        android:textColor="@color/myblack" />
 
-    </LinearLayout>
+    <ImageView
+        android:id="@+id/iv_delete"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:src="@mipmap/del"
+        android:scaleType="center"/>
 
 </LinearLayout>

+ 39 - 30
app/src/main/res/layout/recyclerview_item_minedevice.xml

@@ -3,64 +3,73 @@
     android:layout_marginBottom="1dp"
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
-    android:layout_height="60dp"
+    android:layout_height="68dp"
     android:background="@color/white"
     android:descendantFocusability="blocksDescendants">
+
     <RelativeLayout
         android:layout_width="match_parent"
-        android:layout_height="60dp">
-    <LinearLayout
-        android:id="@+id/layout_content"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:gravity="center"
-        android:orientation="horizontal">
+        android:layout_height="68dp">
+
+        <LinearLayout
+            android:id="@+id/layout_content"
+            android:layout_width="match_parent"
+            android:layout_height="68dp"
+            android:gravity="center"
+            android:orientation="horizontal">
+
             <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="60dp"
+                android:layout_width="0dp"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="@dimen/margin_side"
+                android:layout_marginBottom="@dimen/margin_side"
                 android:layout_weight="1"
                 android:gravity="center_vertical"
                 android:orientation="vertical">
+
                 <TextView
                     android:id="@+id/re_item"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:gravity="center"
-                    android:layout_marginLeft="10dp"
+                    android:layout_marginLeft="@dimen/normal_side"
                     android:textSize="17dp"
-                    android:text="测试四海带花掉"
-                    android:textColor="@color/myblack"
-                    />
+                    android:text="场所名称"
+                    android:textStyle="bold"
+                    android:textColor="@color/myblack" />
+
                 <TextView
                     android:id="@+id/re_item1"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:gravity="center"
-                    android:layout_marginLeft="10dp"
-                    android:layout_marginTop="2dp"
-                    android:textSize="14dp"
+                    android:layout_marginLeft="@dimen/normal_side"
+                    android:layout_marginTop="4dp"
+                    android:textSize="15dp"
                     android:singleLine="true"
-                    android:text="测试四海带花掉"
-                    android:textColor="@color/myblack"
-                    />
+                    android:text="场所地址"
+                    android:textColor="@color/myblack" />
 
             </LinearLayout>
-        <ImageView
-            android:layout_width="20dp"
-            android:layout_height="20dp"
-            android:background="@mipmap/right"
-            android:layout_margin="10dp"
-            />
-    </LinearLayout>
+
+            <ImageView
+                android:layout_width="20dp"
+                android:layout_height="20dp"
+                android:background="@mipmap/right"
+                android:layout_marginRight="@dimen/normal_side"
+                android:padding="@dimen/normal_side" />
+
+        </LinearLayout>
+
         <com.silence.commonframe.utils.DrawableCenterTextView
             android:id="@+id/tv_delete"
             android:layout_width="80dp"
-            android:layout_height="60dp"
+            android:layout_height="68dp"
             android:layout_toRightOf="@id/layout_content"
             android:background="@drawable/pink_background"
             android:gravity="center"
             android:text="删除"
             android:textColor="#DDFFFFFF"
-            android:textSize="14dp" />
+            android:textSize="18dp" />
+
     </RelativeLayout>
 </com.silence.commonframe.utils.LeftSlideView>

TEMPAT SAMPAH
app/src/main/res/mipmap-xhdpi/hsh_user_place_tel.png


+ 7 - 0
app/src/main/res/values/styles.xml

@@ -200,6 +200,13 @@
         <item name="android:gravity">right|center_vertical</item>
     </style>
 
+    <style name="list_margin_style">
+        <item name="android:paddingLeft">@dimen/normal_side</item>
+        <item name="android:paddingRight">@dimen/normal_side</item>
+        <item name="android:paddingTop">@dimen/normal_side</item>
+        <item name="android:paddingBottom">@dimen/normal_side</item>
+    </style>
+
     <!-- 自定义TitleBar -->
     <declare-styleable name="TitleBar">
         <attr name="leftImg" format="reference" />