문제

I cant find the way to get the event "focus exiting from a edittext" (neather "focus entering an edittext"). I've found the event OnFocusChange, but it is called both the times, entering and exiting the edit, and i want my function called by that event to be called once. How can i do this?

도움이 되었습니까?

해결책

OnFocusChange method has two parameters, second parameter is boolean hasFocus isn't it what you need? If it is true it means entering focus and you can write your code there.

Let me know if I misunderstood

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top