Android - Why the click event isn't trigged -


i'm facing problem focus on application. i'm trying catch click event animate edittext, reason don't understand, edittext focused click event not trigged.

the user has click 2nd time start animation.

i've got 2 autocompletetextview in sherlockfragment.

is possible come animation i'm doing ?

edit:

    metwhere.setonclicklistener(new view.onclicklistener() {                 @override                 public void onclick(view view) {                     log.d(tag, "metwhere've been clicked");                     if (!mllwherehasbeenclicked) {                         mllwherehasbeenclicked = true;                         if (malphaframelayout != null) {                             animate(malphaframelayout).setduration(anim_duration / 2).alpha(0.9f);                         }                         if (mllwhere != null) {                             oldllwhereypos = viewhelper.gety(mllwhere);                             log.v(tag, "oldywherellpos: " + oldllwhereypos);                             animate(mllwhere).setduration(anim_duration).y(25.0f);                             mbringtofrontview(mllwhere);                         }                     }                 }             }); 

this code reset position of edittexts

private void resetpositionviews() {     closekeyboard();      if (malphaframelayout != null && viewhelper.getalpha(malphaframelayout) > 0.0f) {         animate(malphaframelayout).setduration((7 / 4) * anim_duration).alpha(0.0f);         mbringtofrontview(malphaframelayout);     }      if (viewhelper.gety(mllwho) == 25.0f && metwho.isfocused() && mllwhohasbeenclicked) {         log.i(tag, "metwho has focus");         log.i(tag, "back oldllwhoypos: " + oldllwhoypos);         animate(mllwho).setduration(anim_duration).y(oldllwhoypos);         mllwhohasbeenclicked = false;     }      if (viewhelper.gety(mllwhere) == 25.0f && metwhere.isfocused() && mllwherehasbeenclicked) {         log.i(tag, "metwho has focus");         log.i(tag, "back oldllwhoypos: " + oldllwhereypos);         animate(mllwhere).setduration(anim_duration).y(oldllwhereypos);         mllwherehasbeenclicked = false;     } } 


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -