| | |
| | | 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; |
| | |
| | | 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() { |