OnLongClick with Text View & Edit Text
-
27-09-2019 - |
Question
In Android can the OnLongClickListener be used with EditTexts and TextViews or just Buttons?
Solution
OnLongClick handling is inherited from android.view.View. Therefore it should be functional with EditText and TextView too.
OTHER TIPS
It can be used on the base class View
so also on every derived class. In other words. Yes you can. Reflink to the OnLongClickListener interface.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow