liuzhenxing1118 3 years ago
parent
commit
83f2744a96

+ 1 - 0
.idea/misc.xml

@@ -51,6 +51,7 @@
         <entry key="app/src/main/res/layout/view_cancel_sure.xml" value="0.34054107666015626" />
         <entry key="app/src/main/res/layout/view_content.xml" value="0.19300911854103345" />
         <entry key="app/src/main/res/layout/view_empty.xml" value="0.1" />
+        <entry key="app/src/main/res/layout/view_empty2.xml" value="0.379981884057971" />
         <entry key="app/src/main/res/layout/view_message_text.xml" value="0.1" />
         <entry key="app/src/main/res/layout/view_sure.xml" value="0.33498922857490865" />
         <entry key="app/src/main/res/layout/view_textview.xml" value="0.1" />

+ 1 - 9
app/src/main/java/com/xplora/xpsettings/Activity/ApnEditActivity.java

@@ -47,16 +47,8 @@ public class ApnEditActivity extends BaseActivity {
         mDataList.add(model);
 
         BaseModel model1 = new BaseModel();
-        model1.cellType = Constant.CellType.EMPTY;
+        model1.cellType = Constant.CellType.EMPTY2;
         mDataList.add(model1);
-
-        BaseModel model2 = new BaseModel();
-        model2.cellType = Constant.CellType.EMPTY;
-        mDataList.add(model2);
-
-        BaseModel model3 = new BaseModel();
-        model3.cellType = Constant.CellType.EMPTY;
-        mDataList.add(model3);
     }
 
     private void initView() {

+ 2 - 0
app/src/main/java/com/xplora/xpsettings/Adapter/BaseListAdapter.java

@@ -84,6 +84,8 @@ public class BaseListAdapter extends ArrayAdapter<BaseModel> {
             view = LayoutInflater.from(getContext()).inflate(R.layout.view_message_text, null);
         } else if (model.cellType == Constant.CellType.EMPTY) {
             view = LayoutInflater.from(getContext()).inflate(R.layout.view_empty, null);
+        } else if (model.cellType == Constant.CellType.EMPTY2) {
+            view = LayoutInflater.from(getContext()).inflate(R.layout.view_empty2, null);
         }
 
         assert view != null;

+ 1 - 0
app/src/main/java/com/xplora/xpsettings/Utils/Constant.java

@@ -39,6 +39,7 @@ public class Constant {
         SURE,
         MESSAGE,
         EMPTY,
+        EMPTY2,
     }
 
     public enum E_SEEKBAR_TYPE {

+ 13 - 0
app/src/main/res/layout/view_empty2.xml

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content">
+
+    <RelativeLayout
+        android:layout_width="match_parent"
+        android:layout_height="120dp">
+
+    </RelativeLayout>
+
+</RelativeLayout>