| | |
| | | import android.annotation.SuppressLint; |
| | | import android.os.Bundle; |
| | | import android.util.Log; |
| | | import android.view.View; |
| | | |
| | | import androidx.appcompat.app.AppCompatActivity; |
| | | import androidx.recyclerview.widget.LinearLayoutManager; |
| | |
| | | |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.hdl.hdlsdk.R; |
| | | import com.hdl.hdlsdk.bean.FunctionBean; |
| | | import com.hdl.sdk.common.exception.HDLLinkException; |
| | | import com.hdl.sdk.common.utils.gson.GsonConvert; |
| | | import com.hdl.sdk.connect.HDLLink; |
| | |
| | | private List<FunctionBean> devicesList = new ArrayList<>(); |
| | | private DevicesListAdapter mDevicesListAdapter; |
| | | private RecyclerView mRecyclerView; |
| | | private View view; |
| | | |
| | | @Override |
| | | protected void onCreate(Bundle savedInstanceState) { |
| | |
| | | mRecyclerView.setLayoutManager(new LinearLayoutManager(this)); |
| | | mDevicesListAdapter = new DevicesListAdapter(this, devicesList); |
| | | mRecyclerView.setAdapter(mDevicesListAdapter); |
| | | |
| | | view = findViewById(R.id.rl_back); |
| | | view.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | finish(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | private void initData() { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取功能列表 |
| | | * 获取设备列表 |
| | | */ |
| | | void getFunctionList(){ |
| | | |