Questions tagged [focusable]

76 questions
86
votes
4 answers

Difference between focusable and focusableInTouchMode?

I want to know the actual difference between them... When should each be used, how should each be used, and in which situations is each helpful? Give some examples and explain them in detail.
AndroidGeek
  • 30,803
  • 14
  • 212
  • 262
14
votes
3 answers

Focusable EditText in the ListView and onItemClick

In each ListView item I have EditText. When I set android:focusable="false" for EditText then onItemClick on the ListView item is working, but EditText doesn't get cursor when I click inside. If I'll set android:focusable="true" for EditText, then…
Sviatoslav
  • 1,243
  • 2
  • 16
  • 40
12
votes
4 answers

How to set focus on first focusable element jQuery?

I've been working on a dropdown/popup menu, and I have it working great, with one exception; when you click on the link (or hit the enter key) to open the menu, focus is supposed to be set to the next element that can receive focus. So in this…
DeanH
  • 309
  • 1
  • 7
  • 22
7
votes
0 answers

EditText calls onFocusChanged three times instead of once

I have to do a ListView that contains on each item an EditText. If the EditText receives focus, I have to display a dialog - the condition is strictly for when the EditText receives focus and not when is pressed because it can be selected even if it…
Cata
  • 10,663
  • 10
  • 61
  • 83
6
votes
2 answers

WPF how to make a listbox/listview unfocusable

I've been trying for a while to display some data in a listbox/listview that would be unfocusable (I mean not only the list, but also the items in it). I tried with both types of list (listbox and listview), and I used their ItemTemplate and…
Antoine Jeanrichard
  • 1,043
  • 1
  • 10
  • 17
5
votes
1 answer

Android ListView when Items are Focusable,disables clicks

I am using a ListView with custom adapter it simply has one TextView
Shardul
  • 776
  • 3
  • 11
  • 20
5
votes
1 answer

Handling click for a ClickableSpan with selectable text requires double click

I have a TextView in which every word is a ClickableSpan. When clicked, the word become bold and the dictionary definition of the word is shown in another TextView. The app works correctly until I make the text in the TextView selectable. When the…
Matt Robertson
  • 2,283
  • 5
  • 23
  • 51
5
votes
2 answers

Android EditText.setError not working in not focusable

How can I display a text error with setError in an EditText not focusable? It's important that users don't modify this EditText, it'll be modified for the application. Maybe I have another option different than focusable=false? Now, I have…
5
votes
1 answer

Jquery unsupported pseudo: focusable

I tried to run the following code : focusables = container.find(":focusable"); where container is a div. I get the error : Syntax error, unrecognized expression: unsupported pseudo: focusable I am using jquery-1.9.1.What is the reason? Is there…
user584263
  • 345
  • 5
  • 17
5
votes
6 answers

Temporary disable EditText

I want EditText to temporarily not gain foucs. Scenario is : I have two EditTexts. Whenever any EditText's text is changed, I want another EditText to not to respond to user clicks until another predefined event occurs. To achieve that I tried…
Geek
  • 7,950
  • 15
  • 68
  • 132
4
votes
5 answers

focusable row inside table android

i have in xml a ScrollView which includes one TableLayout. My question is if it's possible to have a focusable row every time i click on it. Here is my xml code:
Nikitas
  • 609
  • 4
  • 9
  • 17
4
votes
3 answers

SetFocusable method or Focusing Components Java

I came across this code: public class Board extends JPanel implements ActionListener{ public Board(){ setFocusable(true); } } If I setFocusable to be true, what exactly does the method do to the object of JPanel? What is the…
Nicholas
  • 591
  • 2
  • 10
  • 28
3
votes
2 answers

ListView Android does not allow selector to work nor does it allows selections

Okay I know this may sound like any other issues regarding the ListView and ListActivity issues but this is not, I am going to go crazy as I have in the past week gone on and on searching all post to find any solution to this that may help me.…
Sanj
  • 3,390
  • 6
  • 23
  • 30
3
votes
2 answers

How to setFocusable true after setting it to false?

here is my code: mEditText.setOnKeyListener(new View.OnKeyListener() { @Override public boolean onKey(View view, int i, KeyEvent keyEvent) { mEditText.setFocusable(false); …
Ajay Chauhan
  • 1,091
  • 2
  • 12
  • 33
2
votes
3 answers

After Animation EditText is focused for typing

I am trying to have my EditText Focused after the animation to expand it takes place. I tried programmicly setting the focus and in Xml have tried. I have run out of ideas that could fix this but someone out there has to know MainActivity, public…
EquiWare
  • 127
  • 2
  • 11
1
2 3 4 5 6