Following topics are discussed
CheckBox
RadioButton
RadioGroup
AutoCompleteTextView
ArrayAdapter
onCheckedChangedListener
setAdapter
setThreshold
*Note: Pashto language is used for explanation.
Channel link
Kotlin Tutorials in English from IntelliLogics
Android Tutorials in Urdu from IntelliLogics
Java Tutorials in Pashto from IntelliLogics
find us on facebook
Nguồn: https://midlandlangarseva.com/
Xem thêm bài viết khác: https://midlandlangarseva.com/game/
checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
if (b)
{
editText.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
}
else {
editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
}
}
});
Sir I have done assignment
behtareen !!!