0

back-button screen shot

enter image description here

I want to know which override method it call when this button is clicked.

I searched around but i couldn't find the answer. If any one know please help.

Thanks

punchman
  • 1,350
  • 1
  • 13
  • 23
Sakib
  • 1
  • 3
  • This is normal behavior. It just changes to better show what it'll do on the next click, which is close the keyboard. Why would you want to change this in the first place? – Vucko Nov 05 '18 at 23:08
  • Vucko brother i want to perform some action if this button is clicked but it didn't call onBackPressed() method that's why i want to know which method should is call... – Sakib Nov 05 '18 at 23:12
  • Possible duplicate of [Intercept back button from soft keyboard](https://stackoverflow.com/questions/3940127/intercept-back-button-from-soft-keyboard) – Vucko Nov 05 '18 at 23:15
  • Sakib, I think the back button action gets captured by the keyboard rather than making it to your app. You can listen for the event indirectly by listening for configuration changes as described in this answer: https://stackoverflow.com/questions/4312319/how-to-capture-the-virtual-keyboard-show-hide-event-in-android – chandsie Nov 05 '18 at 23:17
  • If you have a question that's not related to what you posted here please ask it in a new question. You can imagine how things get muddled if people are asking / answering multiple questions in a single post. – Jeffrey Blattman Nov 06 '18 at 00:28

1 Answers1

0

You can try to use OnBackPressedCallback from new androidx.activity 1.0.0-alpha01 library.

https://developer.android.com/jetpack/androidx/androidx-rn#2018-nov-activity