Enable onContextMenu when automatic connection is detected

I have a list item and I add these properties

            android:autoLink="web|email|phone"
            android:linksClickable="true"
            autoUrlDetect="true"

but the problem is communication detection, the context menu is not displayed.

How can I have links in my element, but still have a context menu to keep showing when the element is long pressed.

in my list item I don't have one layout and text inside it

EDIT

if I installed this android: linksClickable to false, like this

android:linksClickable="false"

then the context menu is displayed, but I can’t click the link :(

I want to be able to click the link, but also when I click on the menu item that will be displayed for a long time

+5
source share
1 answer

: -).

android:focusable="true"

0

All Articles