public class DeviceAdapter.Holder extends RecyclerView.ViewHolder implements View.OnClickListener, CompoundButton.OnCheckedChangeListener
DeviceAdapter
.Modifier and Type | Field and Description |
---|---|
CheckBox |
checkBox
The
CheckBox displayed at the left of the entry |
TextView |
deviceNameView
The
TextView for the device's name |
itemView
Constructor and Description |
---|
Holder(androidx.constraintlayout.widget.ConstraintLayout v)
Constructs a
DeviceAdapter.Holder using an inflated device_entry_layout . |
Modifier and Type | Method and Description |
---|---|
void |
onCheckedChanged(CompoundButton buttonView,
boolean isChecked) |
void |
onClick(View v)
Method triggered when a
DeviceAdapter.Holder is clicked. |
getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
public Holder(androidx.constraintlayout.widget.ConstraintLayout v)
DeviceAdapter.Holder
using an inflated device_entry_layout
.v
- the device_entry_layout
public void onClick(View v)
DeviceAdapter.Holder
is clicked.onClick
in interface View.OnClickListener
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
onCheckedChanged
in interface CompoundButton.OnCheckedChangeListener