mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-08 11:47:36 +00:00
CheckBoxのId変更
This commit is contained in:
2 files changed
+6
-2
No files matched your search
+5
-1
@@ -1,5 +1,6 @@
|
|||||||
package one.nem.lacerta.component.common;
|
package one.nem.lacerta.component.common;
|
||||||
|
|
||||||
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@@ -50,6 +51,9 @@ public class LacertaApplyTagAdapter extends RecyclerView.Adapter<LacertaApplyTag
|
|||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(@NonNull LacertaApplyTagAdapter.LacertaApplyTagViewHolder holder, int position) {
|
public void onBindViewHolder(@NonNull LacertaApplyTagAdapter.LacertaApplyTagViewHolder holder, int position) {
|
||||||
DocumentTagApplyTagDialogExtendedModel documentTag = documentTagArrayList.get(position);
|
DocumentTagApplyTagDialogExtendedModel documentTag = documentTagArrayList.get(position);
|
||||||
|
if (holder.checkBox == null) {
|
||||||
|
Log.d("LacertaApplyTagAdapter", "onBindViewHolder: holder.checkBox is null");
|
||||||
|
}
|
||||||
holder.checkBox.setText(documentTag.getName());
|
holder.checkBox.setText(documentTag.getName());
|
||||||
holder.checkBox.setChecked(documentTag.getIsChecked());
|
holder.checkBox.setChecked(documentTag.getIsChecked());
|
||||||
holder.checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> {
|
holder.checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> {
|
||||||
@@ -73,7 +77,7 @@ public class LacertaApplyTagAdapter extends RecyclerView.Adapter<LacertaApplyTag
|
|||||||
public LacertaApplyTagViewHolder(@NonNull View itemView) {
|
public LacertaApplyTagViewHolder(@NonNull View itemView) {
|
||||||
super(itemView);
|
super(itemView);
|
||||||
|
|
||||||
checkBox = itemView.findViewById(R.id.checkBox);
|
checkBox = itemView.findViewById(R.id.tag_check_box);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/checkBox"
|
android:id="@+id/tag_check_box"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
|
|||||||
Reference in new issue
Block a user