Просмотр исходного кода

微信列表功能

Signed-off-by: 刁铃刚 <315096953@qq.com>
刁铃刚 лет назад: 8
Родитель
Сommit
22caad2670

+ 1 - 4
.idea/misc.xml

@@ -1,8 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
-  <component name="EntryPointsManager">
-    <entry_points version="2.0" />
-  </component>
   <component name="NullableNotNullManager">
     <option name="myDefaultNullable" value="android.support.annotation.Nullable" />
     <option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
@@ -27,7 +24,7 @@
       </value>
     </option>
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/build/classes" />
   </component>
   <component name="ProjectType">

+ 1 - 2
.idea/modules.xml

@@ -2,8 +2,7 @@
 <project version="4">
   <component name="ProjectModuleManager">
     <modules>
-      <module fileurl="file://$PROJECT_DIR$/SamllSheepPlugin.iml" filepath="$PROJECT_DIR$/SamllSheepPlugin.iml" />
-      <module fileurl="file://D:/Dlg/AndroidStudioProjects/small_sheep_android/SamllSheepPlugin.iml" filepath="D:/Dlg/AndroidStudioProjects/small_sheep_android/SamllSheepPlugin.iml" />
+      <module fileurl="file://D:\Dlg\AndroidStudioProjects\small_sheep_android\SamllSheepPlugin.iml" filepath="D:\Dlg\AndroidStudioProjects\small_sheep_android\SamllSheepPlugin.iml" />
       <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
       <module fileurl="file://$PROJECT_DIR$/small_sheep_android.iml" filepath="$PROJECT_DIR$/small_sheep_android.iml" />
     </modules>

+ 3 - 0
app/src/main/AndroidManifest.xml

@@ -51,6 +51,9 @@
             android:name=".page.WithdrawActivity"
             android:screenOrientation="portrait"/>
         <activity
+            android:name=".page.WxAccountDetail"
+            android:screenOrientation="portrait"/>
+        <activity
             android:name=".page.DownloadActivity"
             android:screenOrientation="portrait"/>
         <activity

+ 1 - 2
app/src/main/java/com/sheep/jiuyan/samllsheep/page/MainActivity.java

@@ -149,9 +149,8 @@ public class MainActivity extends BaseActivity {
             @Override
             public void onRefresh() {
                 mSwipeRefreshLayout.setRefreshing(false);
-                G.showToast("刷新这里要改");
                 mFgtMainPageTask.initData(false);
-                //mFgtMainPageOffline.initData();
+                mFgtMainPageOffline.initData(false);
             }
         });
         findViewById(R.id.linearLayout).setOnClickListener(new View.OnClickListener() {

+ 50 - 0
app/src/main/java/com/sheep/jiuyan/samllsheep/page/WxAccountDetail.java

@@ -0,0 +1,50 @@
+package com.sheep.jiuyan.samllsheep.page;
+
+import android.support.v7.widget.LinearLayoutManager;
+import android.support.v7.widget.RecyclerView;
+import android.widget.TextView;
+
+import com.sheep.jiuyan.samllsheep.R;
+import com.sheep.jiuyan.samllsheep.base.BaseActivity;
+import com.sheep.jiuyan.samllsheep.page.adapter.AdpWxDetailList;
+
+/**
+ * @ Created by Dlg
+ * @ <p>TiTle:  WxAccountDetail</p>
+ * @ <p>Description:</p>
+ * @ date:  2018/1/16 21:38
+ * @ QQ:    315096953
+ */
+public class WxAccountDetail extends BaseActivity {
+
+    public final static String INTENT_WXID_STR = "INTENT_WXID_STR";
+    private RecyclerView mRecyclerView;//列表
+    private TextView mTxtAccount;//当前微信号
+    private AdpWxDetailList mAdpWxDetailList;
+
+
+    @Override
+    protected int getLayoutId() {
+        return R.layout.wx_account_detail;
+    }
+
+    @Override
+    public void initView() {
+        mRecyclerView = (RecyclerView) findViewById(R.id.recy_wx_account_detail);
+        mTxtAccount = (TextView) findViewById(R.id.txt_wx_account_detail);
+        mAdpWxDetailList = new AdpWxDetailList(this);
+
+        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
+        mRecyclerView.setAdapter(mAdpWxDetailList);
+    }
+
+    @Override
+    public void initListener() {
+
+    }
+
+    @Override
+    public void initData() {
+
+    }
+}

+ 73 - 0
app/src/main/java/com/sheep/jiuyan/samllsheep/page/adapter/AdpTaskList.java

@@ -0,0 +1,73 @@
+package com.sheep.jiuyan.samllsheep.page.adapter;
+
+import android.content.Context;
+import android.content.Intent;
+import android.view.View;
+import android.widget.TextView;
+
+import com.sheep.jiuyan.samllsheep.R;
+import com.sheep.jiuyan.samllsheep.page.WxAccountDetail;
+import com.sheep.jiuyan.samllsheep.page.entry.WXAccount;
+
+/**
+ * @ Created by Dlg
+ * @ <p>TiTle:  AdpTaskList</p>
+ * @ <p>Description:</p>
+ * @ date:  2018/1/16 21:06
+ * @ QQ:    315096953
+ */
+
+public class AdpTaskList extends AdpCommonRecy<WXAccount> {
+
+    private final static int TAG_WXID = R.id.tagid1;
+
+    public AdpTaskList(Context context) {
+        super(context);
+    }
+
+    @Override
+    public int getViewIdByType(int viewType) {
+        return R.layout.item_fgt_main_page_offline_task;
+    }
+
+    @Override
+    public void convert(ViewHolder holder, WXAccount wxAccount) {
+        holder.itemView.setTag(TAG_WXID, wxAccount.getWxId());
+        holder.getView(R.id.txt_item_fgt_main_page_offline_task_user, TextView.class)
+                .setText(wxAccount.getWxId());
+        holder.getView(R.id.txt_item_fgt_main_page_offline_task_statu, TextView.class)
+                .setText(getStatusStr(wxAccount.getStatus()));
+        holder.getView(R.id.txt_item_fgt_main_page_offline_task_descp, TextView.class)
+                .setText(wxAccount.getAction());
+    }
+
+    /**
+     * 根据微信号的statu返回状态描述
+     *
+     * @param statu
+     * @return
+     */
+    private String getStatusStr(int statu) {
+        switch (statu) {
+            case 0:
+                return "未审核";
+            case 1:
+                return "正常";
+            case 2:
+                return "异常";
+        }
+        return "无";
+    }
+
+    @Override
+    public void onCreated(ViewHolder holder, int viewType) {
+        holder.itemView.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                Intent intent = new Intent(mContext, WxAccountDetail.class);
+                intent.putExtra(WxAccountDetail.INTENT_WXID_STR, view.getTag(TAG_WXID) + "");
+                mContext.startActivity(intent);
+            }
+        });
+    }
+}

+ 36 - 0
app/src/main/java/com/sheep/jiuyan/samllsheep/page/adapter/AdpWxDetailList.java

@@ -0,0 +1,36 @@
+package com.sheep.jiuyan.samllsheep.page.adapter;
+
+import android.content.Context;
+
+import com.sheep.jiuyan.samllsheep.R;
+import com.sheep.jiuyan.samllsheep.page.entry.WxDetailList;
+
+/**
+ * @ Created by Dlg
+ * @ <p>TiTle:  AdpWxDetailList</p>
+ * @ <p>Description:</p>
+ * @ date:  2018/1/16 21:55
+ * @ QQ:    315096953
+ */
+
+public class AdpWxDetailList extends AdpCommonRecy<WxDetailList> {
+
+    public AdpWxDetailList(Context context) {
+        super(context);
+    }
+
+    @Override
+    public int getViewIdByType(int viewType) {
+        return R.layout.item_wx_account_detail;
+    }
+
+    @Override
+    public void convert(ViewHolder holder, WxDetailList wxDetailList) {
+
+    }
+
+    @Override
+    public void onCreated(ViewHolder holder, int viewType) {
+
+    }
+}

+ 5 - 6
app/src/main/java/com/sheep/jiuyan/samllsheep/page/entry/WXAccount.java

@@ -5,20 +5,19 @@ package com.sheep.jiuyan.samllsheep.page.entry;
  */
 
 public class WXAccount {
-    private  String   WxId;
+    private String WxId;
 
     /**
      * 描述
      */
-    private  String Action;
+    private String Action;
     /**
      * 状态
      */
-    private  int Status;
-
+    private int Status;
 
     public String getWxId() {
-        return WxId;
+        return WxId == null ? "" : WxId;
     }
 
     public void setWxId(String wxId) {
@@ -26,7 +25,7 @@ public class WXAccount {
     }
 
     public String getAction() {
-        return Action;
+        return Action == null ? "" : Action;
     }
 
     public void setAction(String action) {

+ 14 - 0
app/src/main/java/com/sheep/jiuyan/samllsheep/page/entry/WxDetailList.java

@@ -0,0 +1,14 @@
+package com.sheep.jiuyan.samllsheep.page.entry;
+
+/**
+ * @ Created by Dlg
+ * @ <p>TiTle:  WxDetailList</p>
+ * @ <p>Description:</p>
+ * @ date:  2018/1/16 21:57
+ * @ QQ:    315096953
+ */
+
+public class WxDetailList {
+
+
+}

+ 88 - 1
app/src/main/java/com/sheep/jiuyan/samllsheep/page/fragment/FgtMainPageOffline.java

@@ -2,12 +2,30 @@ package com.sheep.jiuyan.samllsheep.page.fragment;
 
 import android.os.Bundle;
 import android.support.annotation.Nullable;
+import android.support.v7.widget.LinearLayoutManager;
+import android.support.v7.widget.RecyclerView;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 
 import com.sheep.jiuyan.samllsheep.R;
 import com.sheep.jiuyan.samllsheep.base.BaseFragment;
+import com.sheep.jiuyan.samllsheep.net.NetManager;
+import com.sheep.jiuyan.samllsheep.net.SheepCallback;
+import com.sheep.jiuyan.samllsheep.net.Url;
+import com.sheep.jiuyan.samllsheep.page.adapter.AdpTaskList;
+import com.sheep.jiuyan.samllsheep.page.entry.TaskPublish;
+import com.sheep.jiuyan.samllsheep.page.entry.WXAccount;
+import com.sheep.jiuyan.samllsheep.utils.BackDo;
+import com.sheep.jiuyan.samllsheep.utils.G;
+import com.sheep.jiuyan.samllsheep.utils.RecyleViewLoadMoreUtils;
+import com.sheep.jiuyan.samllsheep.utils.SpUtils;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.List;
+
+import okhttp3.Call;
 
 /**
  * @ Created by Dlg
@@ -19,6 +37,13 @@ import com.sheep.jiuyan.samllsheep.base.BaseFragment;
 
 public class FgtMainPageOffline extends BaseFragment {
 
+    private ViewGroup mViewEmpty;
+    private ViewGroup mViewList;
+    private RecyclerView mRecyclerView;
+    private int mIntLastPage = 0;//上次的页码
+    private AdpTaskList mAdpTaskList;
+    private RecyleViewLoadMoreUtils mRecyleViewLoadMoreUtils;
+
     @Override
     public int getLayoutId() {
         return R.layout.fgt_main_page_offline;
@@ -26,12 +51,74 @@ public class FgtMainPageOffline extends BaseFragment {
 
     @Override
     public void onViewCreated() {
+        mViewEmpty = findViewById(R.id.layout_fgt_main_page_offline_empty);
+        mViewList = findViewById(R.id.layout_fgt_main_page_offline_task);
+        mRecyclerView = findViewById(R.id.recy_fgt_main_page_offline_task);
 
+        mRecyleViewLoadMoreUtils = new RecyleViewLoadMoreUtils();
+        mAdpTaskList = new AdpTaskList(getActivity());
+        mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
+        mRecyclerView.setAdapter(mAdpTaskList);
+        mRecyleViewLoadMoreUtils.setLoadMore(mRecyclerView, new BackDo() {
+            @Override
+            public void Run() {
+                initData(true);
+            }
+        });
+        initData(false);
     }
 
 
-    public void initData(){
+    /**
+     * 加载远端数据
+     *
+     * @param isLoadMore
+     */
+    public void initData(final boolean isLoadMore) {
+        mIntLastPage = isLoadMore ? mIntLastPage + 1 : 1;
+        HashMap<String, String> map = new HashMap<>();
+        map.put("wx_open_id", SpUtils.getOpenId(getActivity()));
+        NetManager.get(Url.WXACCOUNT, map, getActivity(), new SheepCallback<List<WXAccount>>(getActivity()) {
+            @Override
+            public void success(List<WXAccount> wxAccounts) {
+                if (!isLoadMore) {
+//                    mAdpTaskList.clear();//暂时没有分页功能,就这样吧。
+                }
+                mAdpTaskList.add(new WXAccount());
+                mAdpTaskList.add(new WXAccount());
+                mAdpTaskList.add(new WXAccount());
+                mAdpTaskList.add(new WXAccount());
+                if (wxAccounts != null && wxAccounts.size() > 0) {
+                    mAdpTaskList.addAll(wxAccounts);
+                    mAdpTaskList.notifyDataSetChanged();
+                }
+                //TODO 请求的个数最好弄成统一管理的常量
+                mRecyleViewLoadMoreUtils.setmIsLoading(wxAccounts.size() != 10);
+                reFreshView();
+            }
+
+            //TODO 你的框架不知道哪个是失败必须执行的,要添加拒绝加载更多等
+            @Override
+            public void onFailure(Call call, IOException e) {
+                super.onFailure(call, e);
+                mRecyleViewLoadMoreUtils.setmIsLoading(true);
+                reFreshView();
+            }
+
+            @Override
+            public void otherCode(int code, String string) {
+                mRecyleViewLoadMoreUtils.setmIsLoading(true);
+                reFreshView();
+            }
+        });
+    }
 
+    /**
+     * 刷新UI显示
+     */
+    private void reFreshView() {
+        mViewEmpty.setVisibility(mAdpTaskList.getItemCount() > 0 ? View.GONE : View.VISIBLE);
+        mViewList.setVisibility(mAdpTaskList.getItemCount() > 0 ? View.VISIBLE : View.GONE);
     }
 
 }

+ 5 - 1
app/src/main/java/com/sheep/jiuyan/samllsheep/page/fragment/FgtMainPageTask.java

@@ -174,7 +174,7 @@ public class FgtMainPageTask extends BaseFragment {
             @Override
             public void success(List<TaskPublish> tasks) {
                 if (!isLoadMore) {
-                    mAdapter.clear();
+//                    mAdapter.clear();//暂时没有分页功能
                 }
                 if (tasks != null && tasks.size() > 0) {
                     mAdapter.addAll(tasks);
@@ -190,6 +190,10 @@ public class FgtMainPageTask extends BaseFragment {
                 super.onFailure(call, e);
                 mRecyleViewLoadMoreUtils.setmIsLoading(true);
             }
+            @Override
+            public void otherCode(int code, String string) {
+                mRecyleViewLoadMoreUtils.setmIsLoading(true);
+            }
         });
         NetManager.get(Url.USER_INFO, map, getActivity(), new SheepCallback<User>(getActivity()) {
             @Override

+ 8 - 46
app/src/main/res/layout/fgt_main_page_offline.xml

@@ -5,51 +5,13 @@
     android:background="@color/white"
     android:orientation="vertical">
 
-    <RelativeLayout
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_gravity="center"
-        android:layout_marginTop="60dp">
+    <include
+        android:id="@+id/layout_fgt_main_page_offline_empty"
+        layout="@layout/fgt_main_page_offline_empty"
+        android:visibility="gone" />
 
-        <ImageView
-            android:layout_width="140dp"
-            android:layout_height="140dp"
-            android:src="@drawable/sp_start_offline"
-            android:text="dfgsdfgdsfgdfg" />
-
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_centerInParent="true"
-            android:text="开始挂机"
-            android:textColor="@color/white"
-            android:textSize="@dimen/text_size_6" />
-    </RelativeLayout>
-
-    <TextView
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_gravity="center_horizontal"
-        android:layout_marginTop="40dp"
-        android:text="免费云端挂机,平台自动做任务"
-        android:textColor="@color/black_text_deep"
-        android:textSize="@dimen/text_size_4" />
-
-    <TextView
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_gravity="center_horizontal"
-        android:layout_marginTop="20dp"
-        android:text="云端挂机无需下载,任务奖金一分不少"
-        android:textColor="@color/black_text_light"
-        android:textSize="@dimen/text_size_2" />
-
-    <TextView
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_gravity="center_horizontal"
-        android:layout_marginTop="@dimen/content_padding_small"
-        android:text="使用不常用微信小号,随时随地离线做任务"
-        android:textColor="@color/black_text_light"
-        android:textSize="@dimen/text_size_2" />
+    <include
+        android:id="@+id/layout_fgt_main_page_offline_task"
+        layout="@layout/fgt_main_page_offline_task"
+        android:visibility="visible" />
 </LinearLayout>

+ 55 - 0
app/src/main/res/layout/fgt_main_page_offline_empty.xml

@@ -0,0 +1,55 @@
+<?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:background="@color/white"
+    android:orientation="vertical">
+
+    <RelativeLayout
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center"
+        android:layout_marginTop="60dp">
+
+        <ImageView
+            android:layout_width="140dp"
+            android:layout_height="140dp"
+            android:src="@drawable/sp_start_offline"
+            android:text="dfgsdfgdsfgdfg" />
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_centerInParent="true"
+            android:text="开始挂机"
+            android:textColor="@color/white"
+            android:textSize="@dimen/text_size_6" />
+    </RelativeLayout>
+
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center_horizontal"
+        android:layout_marginTop="40dp"
+        android:text="免费云端挂机,平台自动做任务"
+        android:textColor="@color/black_text_deep"
+        android:textSize="@dimen/text_size_4" />
+
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center_horizontal"
+        android:layout_marginTop="20dp"
+        android:text="云端挂机无需下载,任务奖金一分不少"
+        android:textColor="@color/black_text_light"
+        android:textSize="@dimen/text_size_2" />
+
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center_horizontal"
+        android:layout_marginTop="@dimen/content_padding_small"
+        android:text="使用不常用微信小号,随时随地离线做任务"
+        android:textColor="@color/black_text_light"
+        android:textSize="@dimen/text_size_2" />
+</LinearLayout>

+ 66 - 0
app/src/main/res/layout/fgt_main_page_offline_task.xml

@@ -0,0 +1,66 @@
+<?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:background="@color/white"
+    android:orientation="vertical">
+
+    <TextView
+        android:layout_width="match_parent"
+        android:layout_height="70dp"
+        android:layout_gravity="center_vertical"
+        android:background="@color/background_light_gray"
+        android:gravity="center_vertical"
+        android:paddingLeft="@dimen/content_padding_big"
+        android:text="挂机微信号信息"
+        android:textColor="@color/black_text_gray"
+        android:textSize="@dimen/text_size_4" />
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal"
+        android:paddingBottom="@dimen/content_padding_big"
+        android:paddingLeft="@dimen/content_padding_big"
+        android:paddingRight="@dimen/content_padding_big"
+        android:paddingTop="@dimen/content_padding_big">
+
+        <TextView
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_weight="1"
+            android:gravity="left"
+            android:text="账号"
+            android:textColor="@color/black_text_gray"
+            android:textSize="@dimen/text_size_5" />
+
+        <TextView
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_weight="1"
+            android:gravity="left"
+            android:text="账号状态"
+            android:textColor="@color/black_text_gray"
+            android:textSize="@dimen/text_size_5" />
+
+        <TextView
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_weight="1"
+            android:gravity="left"
+            android:text="备注"
+            android:textColor="@color/black_text_gray"
+            android:textSize="@dimen/text_size_5" />
+    </LinearLayout>
+
+    <android.support.v7.widget.RecyclerView
+        android:id="@+id/recy_fgt_main_page_offline_task"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:paddingLeft="@dimen/content_padding_big"
+        android:paddingRight="@dimen/content_padding_big">
+
+    </android.support.v7.widget.RecyclerView>
+
+
+</LinearLayout>

+ 36 - 0
app/src/main/res/layout/item_fgt_main_page_offline_task.xml

@@ -0,0 +1,36 @@
+<?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="@dimen/layout_heigh_default"
+    android:background="#FDE699"
+    android:gravity="center_vertical"
+    android:orientation="horizontal">
+
+    <TextView
+        android:id="@+id/txt_item_fgt_main_page_offline_task_user"
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+        android:layout_weight="1"
+        android:text="帐号1"
+        android:textColor="@color/black_text_deep"
+        android:textSize="@dimen/text_size_4" />
+
+    <TextView
+        android:id="@+id/txt_item_fgt_main_page_offline_task_statu"
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+        android:layout_weight="1"
+        android:text="挂机中"
+        android:textColor="@color/black_text_deep"
+        android:textSize="@dimen/text_size_4" />
+
+    <TextView
+        android:id="@+id/txt_item_fgt_main_page_offline_task_descp"
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+        android:layout_weight="1"
+        android:text="备注"
+        android:textColor="@color/black_text_deep"
+        android:textSize="@dimen/text_size_4" />
+
+</LinearLayout>

+ 6 - 0
app/src/main/res/layout/item_wx_account_detail.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout
+    xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+</android.support.constraint.ConstraintLayout>

+ 50 - 0
app/src/main/res/layout/wx_account_detail.xml

@@ -0,0 +1,50 @@
+<?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:orientation="vertical">
+
+    <include layout="@layout/title" />
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:background="@color/background_light_gray"
+        android:gravity="center_vertical"
+        android:orientation="horizontal"
+        android:padding="@dimen/content_padding_big">
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="当前挂机微信账号:"
+            android:textColor="@color/black_text_deep"
+            android:textSize="@dimen/text_size_5" />
+
+        <TextView
+            android:id="@+id/txt_wx_account_detail"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="Player"
+            android:textColor="@color/colorAccent"
+            android:textSize="@dimen/text_size_4" />
+
+        <Space
+            android:layout_width="0dp"
+            android:layout_height="1px"
+            android:layout_weight="1" />
+
+        <ImageView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:padding="@dimen/content_padding_small"
+            android:src="@drawable/icon_switch" />
+    </LinearLayout>
+
+    <android.support.v7.widget.RecyclerView
+        android:id="@+id/recy_wx_account_detail"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent">
+
+    </android.support.v7.widget.RecyclerView>
+</LinearLayout>