Category : listener

how can I disable/remove the control listener for a textField in flutter, I am using 3 textField connected with a simple math.. (textField1 + textField2 = textField3) & (textField1 – textField3 = textField2)… I need to change the value of textField3 & keep the value of textField2 unchanged?. the current situation is like this This ..

Read more

I want to edit user Data if user click button and start activity if editting data is completed. addUserData method work well but deleteUserData have some problem. just setValue without addListenForSingleValueEvent apply well, but some code in addListenForSingleValueEvent not executed. How can I solve this? btnStarChoiceDone.setOnClickListener is in onCreate. btnStarChoiceDone.setOnClickListener(new View.OnClickListener() { @Override public void ..

Read more

I write a kotlin app and wonder, why the code runs through the listener during initializing it. I try to explain the question with my code: class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) findpath() //check, if Dateien existieren, sonst create in function checkOrCreateFiles() binding = ActivityMainBinding.inflate(layoutInflater) var view = binding.root setContentView(view) ..

Read more

public class GalleryAdaptor extends RecyclerView.Adapter<GalleryAdaptor.ViewHolder>{ private Context context; private List<String> images; protected PhotoListener photoListener; **IN THIS LINE PARTICULARLY** @NonNull @Override public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { return null; } @Override public void onBindViewHolder(@NonNull ViewHolder holder, int position) { } @Override public int getItemCount() { return 0; } public class ViewHolder extends RecyclerView.ViewHolder{ ImageView ..

Read more