OnLongClick with Text View & Edit Text
-
27-09-2019 - |
문제
In Android can the OnLongClickListener be used with EditTexts and TextViews or just Buttons?
해결책
OnLongClick handling is inherited from android.view.View. Therefore it should be functional with EditText and TextView too.
다른 팁
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.
제휴하지 않습니다 StackOverflow