Commit dcb4a669 authored by DESKTOP-NFGF3PG\zxa01's avatar DESKTOP-NFGF3PG\zxa01

remove device fresh icon

parent 233633c7
......@@ -2,14 +2,10 @@ package com.example.zxa01.iotclient.common.singleton;
import com.example.zxa01.iotclient.common.pojo.auth.LoginMessage;
import java.util.LinkedList;
import java.util.List;
public class DefaultData {
private static DefaultData defaultData = new DefaultData();
private LoginMessage loginMessage;
private List<String> devices = new LinkedList<>();
public String address = "http://192.168.2.90";
public String gatewayPort= "8080";
public String cloudPort = "8081";
......@@ -26,8 +22,4 @@ public class DefaultData {
return loginMessage;
}
public List<String> getDevices(){
return devices;
}
}
......@@ -35,7 +35,6 @@ public class DeviceFragment extends Fragment {
viewModel = new DeviceViewModel(binding.getRoot().getContext());
binding.setViewModel(viewModel);
binding.fab.setOnClickListener(item -> drawDialog());
binding.fabRefresh.setOnClickListener(item -> viewModel.readDevices());
binding.deviceRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
deviceBindFragment = new DeviceBindFragment();
}
......
......@@ -38,17 +38,6 @@
android:theme="@style/ProgressTheme"
android:visibility="@{viewModel.isLoading ? View.VISIBLE : View.GONE}" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab_refresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginLeft="@dimen/margin"
android:layout_marginRight="@dimen/margin"
android:layout_marginBottom="90dp"
android:src="@drawable/ic_refresh_black_24dp"
app:backgroundTint="@color/colorWhite" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment