use the following working code..
*if (isChecked) {
editText.setFocusable(false);
editText.setEnabled(false);
} else {
editText.setEnabled(true);
editText.setFocusableInTouchMode(true);
}
*
On Mon, Dec 27, 2010 at 11:45 AM, Andrew <[email protected]> wrote:
> No no, the method gets called. There might be a bug when adding
> focusable again. I know for sure .setFocusable gets called because the
> edittext becomes white again.
>
> On Dec 27, 1:08 am, praveena ankitha <[email protected]> wrote:
> > write the code in check box .setOnCheckedChangeListener(...) method then
> > automatically that textbox is chaged according to check box
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Dec 27, 2010 at 11:13 AM, Andrew <[email protected]> wrote:
> > > if (isChecked) {
> > > editText.setFocusable(false);
> > > editText.setEnabled(false);
> > > } else {
> > > editText.setEnabled(true);
> > > editText.setFocusable(true);
> > > }
> >
> > > So this is called after a checkbox is clicked on. When it's checked
> > > the textbox goes gray and it cannot gain focus. When it's unchecked
> > > the textbox goes white again, but it still cannot gain focus. So the
> > > problem here is that an edit text view cannot regain focus after being
> > > re-focusable. isFocusable returns true. Is this a bug???? I've been
> > > looking for an answer for quite a while.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%[email protected]><android-developers%2Bunsubs
> [email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Praveena Ankitha
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en