刘振兴 3 年之前
父节点
当前提交
5bcfea8aa7

+ 1 - 0
.idea/misc.xml

@@ -5,6 +5,7 @@
       <map>
         <entry key="app/src/main/res/layout/activity_main.xml" value="0.3546195652173913" />
         <entry key="app/src/main/res/layout/item_connections.xml" value="0.19300911854103345" />
+        <entry key="app/src/main/res/layout/item_refresh.xml" value="0.1" />
         <entry key="app/src/main/res/layout/item_switch.xml" value="0.20199275362318841" />
         <entry key="app/src/main/res/layout/item_wifi_switch.xml" value="0.1" />
         <entry key="app/src/main/res/layout/item_xpstyle.xml" value="0.20199275362318841" />

+ 10 - 0
app/src/main/java/com/xplora/xpsettings/Activity/BluetoothActivity.java

@@ -35,6 +35,16 @@ public class BluetoothActivity extends BaseActivity {
     }
 
     private void initData() {
+        BluetoothModel switchModel = new BluetoothModel();
+        switchModel.title = "aaaa";
+        switchModel.cellType = Constant.CellType.XPSTYLE;
+        mData.add(switchModel);
+
+        BluetoothModel refreshModel = new BluetoothModel();
+        refreshModel.title = "aaaa";
+        refreshModel.cellType = Constant.CellType.XPSTYLE;
+        mData.add(refreshModel);
+
         for (int i = 0; i < 10; i++) {
             BluetoothModel model = new BluetoothModel();
             model.title = "aaaa";

+ 0 - 1
app/src/main/java/com/xplora/xpsettings/Activity/WiFiActivity.java

@@ -68,7 +68,6 @@ public class WiFiActivity extends BaseActivity {
         initData(true);
         adapter.notifyDataSetChanged();
         initScan();
-
     }
 
     @Override

二进制
app/src/main/res/drawable/ic_refresh.png


+ 35 - 0
app/src/main/res/layout/item_refresh.xml

@@ -0,0 +1,35 @@
+<?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="40dp">
+
+    <RelativeLayout
+        android:layout_width="match_parent"
+        android:layout_height="40dp"
+        android:layout_marginLeft="15dp"
+        android:layout_marginRight="15dp"
+        >
+
+        <TextView
+            android:id="@+id/item_title"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_alignParentStart="true"
+            android:fontFamily="Roboto"
+            android:layout_centerVertical="true"
+            android:textColor="@color/white"
+            android:textSize="13sp" />
+
+        <Button
+            android:id="@+id/item_refresh"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_alignParentEnd="true"
+            android:layout_centerVertical="true"
+            android:background="@drawable/ic_refresh"
+            >
+        </Button>
+
+    </RelativeLayout>
+
+</LinearLayout>