i’m trying to make a simple apps but i’ve got a problem. i have a spinner consist of 4 string – day, date, time, location. under the spinner, there are 7checkbox of day from mon – sun, edittext of date, edittext of time and edittext of location (latitude&longitude). how to make the field of date, time and location uneditable if i choose “day” in my spinner? and vice-versa if i choose another string in spinner?? means that if i choose time, only edittext of time can be use and another 3 become uneditable. som1 plz help me, tq..
Share
You can disable a EditText by using this:
You need to implement
OnItemSelectedListener, then inside youronItemSelectedmethod you can switch the position: