I have 7 Edit Text fields in my Activity
I have values where text from EditText is writing
For example:
EditText misto = FindViewById<EditText>(Resource.Id.misto) ;
city = misto.Text;
How I can check empty EditText and don't start new activity when user don't fill all fields?
I using Xamarin (c#) for making Android app.
You could use something like:
if(string.IsNullOrEmpty(misto.Text))
{
// do something
}
to check for empty strings.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.