Hello,
Welcome to our Microsoft Q&A platform!
However, during this process the TextChanged event is being triggered for EditText(s) in ViewHolder
Hi, njsokalski. I created a basic demo to test the function, the TextChanged event will not be triggered when clearing and adding new items. Here is the code of my project, please check it. If it doesn't work on your side, please share the related code to reproduce the issue.
private async void MainActivity_Click(object sender, EventArgs e)
{
list.Clear();
list.Add(new model { ... });
...
myadapter.NotifyDataSetChanged();
}
Custom ViewHolder class
public class CustomViewHolder : RecyclerView.ViewHolder
{
public EditText Edit { get; private set; }
public _ViewHolder(View itemView) : base(itemView)
{
Edit = itemView.FindViewById<EditText>(Resource.Id.edit);
Edit.TextChanged += delegate
{
//
};
}
}
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.