質問

I have a list item view , and I add this properties

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

but the problem is when an link is detected the context menu is not shown.

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

in my list item I have one layout and textview inside him nothing more

EDIT

if I set this android:linksClickable to false like this

android:linksClickable="false"

then the context menu is shown, but I can not click the link :(

I want to be able to click the link, but also when I long press the item my menu to be shown

役に立ちましたか?

解決

After a 2 days searching for solution I found it :-).

android:focusable="true"

to the item fix my problem

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top