Questions tagged [focusable]

77 questions
0
votes
1 answer

How to make HTML links in a listView Item focusable?

I wanna make an app which is quite similar to the official twitter client for android. In my listView Item ,there is a TextView which has some html content,I hope the links within it can be focusable and clickable,I have…
DiveInto
  • 2,158
  • 3
  • 27
  • 50
0
votes
2 answers

Android How to LinearLayout (or other views) set clickable and focusable

I want to set focusable and clickable mode for LinearLayout (like in above image). How to I make this?
Taha Körkem
  • 774
  • 2
  • 9
  • 23
0
votes
1 answer

Wpf Caliburn Micro: TextBox getter doesn't return newest value

I have a very simple sample code, a TextBox and a Button. User inputs some text in textBox and click the Button. It should show a common MessageBox which contains the text he just input in the TextBox. Problem: the MessageBox shows blank! After some…
MagB
  • 2,131
  • 5
  • 28
  • 54
0
votes
1 answer

keyListener not applying to JPanel (yes, it is focused)

I am currently working on a project and when I try to add my own key listener that is in its own class it doesn't work and when you press the keys nothing happens, and I've been at it for a while now. I can't use Keybindings so please don't offer…
Abob
  • 751
  • 5
  • 27
0
votes
1 answer

Disable key events

Im making a quiz application, and when a team pushed their buttons (keyboard keys), i want my JFrame to stop listening to other pushes untill the next question or if the answer is wrong. How can i stop listening to key events? I tried setting the…
user3485470
  • 121
  • 5
  • 11
0
votes
1 answer

Not selecting a row in a JTable

I have a JTable with a number of rows, each row made up of a number of JPanels. I want one of the rows in the JTable to be unselectable. I have used a: panel.setFocusable(false); on this particular row. However, when pressing the down arrow key on…
maloney
  • 1,633
  • 3
  • 26
  • 49
0
votes
1 answer

Focusable WinRT UserControl with image background

I'm having difficulty developing a WinRT control that can display an image as well as be focusable and receive keyboard input. The first part - displaying an image in a UserControl - is straightforward; using a child Rectangle whose background is an…
bright
  • 4,700
  • 1
  • 34
  • 59
0
votes
0 answers

Android ListView with EditText focus issues

I have a question, why can't we have EditTexts inside ListViews (in the ListView items) ? Every time I had this thing to do I had to do a lot of "hacks" to make it work and still I have a lot of focus issues.. I saw a lot of posts on stack and on…
Cata
  • 11,133
  • 11
  • 65
  • 86
0
votes
3 answers

having problems with keyListener

i am trying to make a simple reaction test in java. when the screen turns green i press space witch is supposed to change te boolean "clicked into false and stop the loop that measures time. in reality the key listner does nothing. am i adding the…
ubailey71
  • 1
  • 2
0
votes
2 answers

Android ListView onItemClickListener being blocked by ProgressBar

I had my onItemClickListener working for my ListView inside of my DrawerLayout working fine. But I added a ProgressBar that is displayed before anything else then it is set to View.GONE. However, I can't select and items from my list view any…
Dylan Holmes
  • 335
  • 1
  • 6
  • 17
0
votes
1 answer

Android Button always takes two clicks to fire onClick()

I have a RelativeLayout inside of a ScrollView that contains a Button and some TextViews and EditTexts. In my xml layout file, I am defining android:onClick but it always takes two clicks of the button to fire the event. The button always gets…
plisskin
  • 41
  • 1
  • 5
0
votes
3 answers

Three Questions

First, I want set unchecked all the 8 checkboxes using a loop like this: for (int i=1;i<8;++i){ CheckBox view1 = (CheckBox) findViewById(R.id.CheckBox0+String.valueOf(i)); view1.setChecked(false); } It Doesn't work, but you get the…
JoeCoolman
  • 512
  • 3
  • 8
  • 27
0
votes
1 answer

Why navigationMovement for FOCUSABLE LabeField is bypassed in Blackberry?

I have a LabelField whith style FOCUSABLE and many focusable Fields after it, and I overrided the navigationMovement method of the LabelField. The problem is that: the code never enters in the new implementation of navigationMovement but the focus…
Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82
-1
votes
2 answers

How to make Edittext can be marked only programmatically?

I wanna have an EditText which can be updated only programmatically. When I click on it, I will not be able to enter anything, but when I click the button with requestFocus to this EditText I want to have that option. I tried…
toja6755
  • 23
  • 7
-1
votes
4 answers

EditText focus method not working as expected in android

I have a button "show" and when the button is clicked , the edit text box must not be editable and when I click next, I must give back the focus to edit text box. I tried the below code showans.setOnClickListener(new View.OnClickListener() { …
Anusha
  • 939
  • 3
  • 13
  • 31