i have an application that has form and there is some fields the user should fill it ,i want to put the button "Next" disable until the user fill this fields.
the fields is:(iamgeView, EditText,Spinner..)
i know how to check the text Edit but how can i check if the user fill the image and spinner or not (image view will let the user choose an image from native gallery)
What i want: how can i check if the user fill the image and spinner or not? this is my code to check the Edit Text
private boolean checkEditText2(EditText edit) {
return edit.getText().length() == 0;
}
In xml file your image have not android:src=""
and android:backgroud=""
if(null!=imgView.getDrawable())
{
//imageview has image
}else{
//imageview has no image
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With