Questions tagged [clickable]

The tag refers to a graphics user interface item, which can be clicked using the mouse or tapped (in case of touchscreen application).

702 questions
1150
votes
40 answers

How to make links in a TextView clickable

I have the following TextView defined:
Richard
  • 28,691
  • 8
  • 33
  • 34
89
votes
7 answers

setEnabled() vs setClickable(), what is the difference?

Until now, when I wanted to stop the user from pressing the button, I would set the button.setClickable(false); and usually change the text to some kind of grey colour (to let the user know that the button is disabled). Today I stumbled upon the…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
82
votes
2 answers

Make specific parts of a text clickable in flutter

I want to make a part of a text tapable so I can call a function on it. Also I want to have control over the style of the tapable text. In the best case I can also increase the size of the tapable area to for example 42px. I already looked into…
julian.a
  • 1,163
  • 2
  • 9
  • 21
68
votes
2 answers

difference between `focusable` and `clickable`

What is the difference between clickable and focusable in android?
eugene
  • 39,839
  • 68
  • 255
  • 489
46
votes
2 answers

How to set Ripple effect on a LinearLayout programmatically?

I want to set the background android.R.attr.selectableItemBackground to a LinearLayout. When using XML there are no problems (it works)
Splact
  • 702
  • 2
  • 8
  • 15
44
votes
2 answers

Can't make URL clickable in UITextView

I'm using Interface Builder to layout my app. I have a UITextView that contains some text, part of which is a URL that I'd like to make clickable (e.g. launches a browser). I've read up on how to do this and believe I'm doing it correctly, however…
Madbreaks
  • 19,094
  • 7
  • 58
  • 72
37
votes
14 answers

How set ListView not clickable

I have this ListView that just needs to show data. So I don't want to make it clickable. First I've tried changing XML listview to:
Tizianoreica
  • 2,142
  • 3
  • 28
  • 43
36
votes
2 answers

CSS - Link not clickable when using absolute position

Here is the HTML script of my header:
34
votes
1 answer

UILabel and NSLinkAttributeName: Link is not clickable

I want to use attributed strings with NSLinkAttributeName to create clickable links inside a UILabel instance within my iOS 7 project, which is now finally possible without using external libraries. NSURL *url = [NSURL…
Habizzle
  • 2,971
  • 3
  • 20
  • 23
32
votes
7 answers

How to disable clicking on ListView in android?

I have a ListView that I'm populating with values from my database. If the database is empty, I'm setting the first item of the ListView to "No data.". I want to disable clicking on this item. I've used ArrayAdapter. I tried making…
user1625971
  • 499
  • 2
  • 5
  • 15
28
votes
10 answers

Disable Click Event on Android ListView Items

I'm trying to disable multiple click events on listview, say after pressing first click some media gets played from webservice, while it gets played, other items need to be clickable==false , after media got played,other list items can be…
user2143831
27
votes
5 answers

Clickable URL in a Winform Message Box?

I want to display a link to help in a message box. By default the text is displayed as a non-selectable string.
Jeff
  • 8,020
  • 34
  • 99
  • 157
23
votes
6 answers

When should one use android:clickable?

When should we use android:clickable in XML? Should we ever? Is there any difference between such XML declaration and in-code declaration myButton.setOnClickListener? I have read the documentation, but I could not find out when and why should I ever…
sandalone
  • 41,141
  • 63
  • 222
  • 338
23
votes
7 answers

How to make transparent part of SVG clickable?

I have an SVG that uses :hover to change color. It only works when I hover over the solid part of the SVG, not the transparent part. I'm wondering how you could make the SVG interact with the mouse hovering anywhere over the whole SVG. The point of…
Sam Sabin
  • 553
  • 1
  • 6
  • 19
1
2 3
46 47