|
@@ -8,6 +8,7 @@ import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
|
import android.widget.ArrayAdapter;
|
|
|
+import android.widget.CheckBox;
|
|
|
import android.widget.ImageView;
|
|
|
import android.widget.Switch;
|
|
|
import android.widget.TextView;
|
|
@@ -53,7 +54,7 @@ public class BaseListAdapter extends ArrayAdapter<BaseModel> {
|
|
|
view = LayoutInflater.from(getContext()).inflate(R.layout.item_switch, null);
|
|
|
}
|
|
|
else if (model.cellType == Constant.CellType.CHECKBOX) {
|
|
|
- view = LayoutInflater.from(getContext()).inflate(R.layout.item_switch, null);
|
|
|
+ view = LayoutInflater.from(getContext()).inflate(R.layout.item_checkbox, null);
|
|
|
}
|
|
|
else if (model.cellType == Constant.CellType.REFRESH) {
|
|
|
view = LayoutInflater.from(getContext()).inflate(R.layout.item_refresh, null);
|
|
@@ -63,6 +64,7 @@ public class BaseListAdapter extends ArrayAdapter<BaseModel> {
|
|
|
ImageView itembackground = view.findViewById(R.id.item_background);
|
|
|
ImageView itemIcon = view.findViewById(R.id.item_icon);
|
|
|
Switch itemSwitch = view.findViewById(R.id.item_switch);
|
|
|
+ CheckBox itemCheckbox = view.findViewById(R.id.item_checkbox);
|
|
|
|
|
|
|
|
|
if (itemTitle != null) {
|
|
@@ -85,6 +87,9 @@ public class BaseListAdapter extends ArrayAdapter<BaseModel> {
|
|
|
// mHandler.sendMessage(message);
|
|
|
// }
|
|
|
// );
|
|
|
+ }
|
|
|
+ if (itemCheckbox != null) {
|
|
|
+
|
|
|
}
|
|
|
return view;
|
|
|
}
|