pressed Questions

5

Solved

How can I make my button's size to increase slightly when it is pressed and decrease again when it is released? This is for highlighting the pressed button, by using size in addition to a different...
Theca asked 23/9, 2010 at 12:35

7

I have button_focused, button_pressed, and button_normal images. When I press the button, the button_pressed image is displayed and the action related to the button pressing begins. When I quit p...
Silda asked 12/1, 2011 at 22:51

7

Is there a way to apply a style to a button when the button is pressed? If I have a style in style.xml: <resources> <style name="test"> <item name="android:textStyle">bold<...
Comedown asked 16/9, 2010 at 19:48

1

I wrote this css code for button pressed .button:pressed { -fx-scale-y: 0.9; -fx-scale-x: 0.9; } and this for button hover .button:hover { -fx-background-color: #383838; -fx-scale-y: 1.1;...
Hardtop asked 20/4, 2017 at 1:5

1

Solved

I ve got a problem and could not find a solution till yet! I ve implemented a custom keyboard with several keys. Each key got a background image. I would like to change the background color of the ...
Belay asked 29/7, 2016 at 0:45

3

Solved

I'm looking for a way in tcl to pause the script (for example after some outputs with "puts") and wait for a key pressed from the user before continuing to output the remaining text.
Barrage asked 24/9, 2013 at 22:22

3

I have a WebView and some buttons in my layout. There is a large tag in my WebView. This app is used to edit text files. The buttons are used to effect the textarea inside my WebView. When the user...
Nettie asked 4/11, 2011 at 22:28

3

I register getInputMap().put(KeyStroke.getKeyStroke("pressed RIGHT"), "go right"); When testing the code I get: While I hold the right arrow key down, the action is triggered repeatedly and not...
Swiss asked 1/11, 2013 at 8:27

4

I need to be able to detect if a certain key (e.g. CTRL) is pressed during a specific operation of mine. I don't have access to a key listener, nor to a mouse event. What I'm hoping is that there w...
Grania asked 25/8, 2010 at 14:51

3

Solved

In iOS, if I set a button's background to an image, when I press the button, the whole content of the button (including the text) will be shadowed. Can I achieve the same effect in Android, or do I...
Centrosymmetric asked 16/6, 2011 at 23:40

3

Solved

I would like to start a timer that begins when a button is first pressed and ends when it is released (basically I want to measure how long a button is held down). I'll be using the System.nanoTime...
Kilah asked 15/8, 2012 at 3:29

1

Solved

I use a XML file to display a button with 2 states (normal, pressed). How can I find out when the button is pressed? Is there an event like onClick --> onPressed or how can I find it out? Here is ...
Bridgid asked 30/6, 2012 at 8:18

3

Solved

Possible Duplicate: Android. How do I keep a button displayed as PRESSED until the action created by that button is finished? I have a button, and I want that when I press it, it stay...
Meldon asked 20/1, 2011 at 12:50

2

Solved

I'm trying to change a TextView style based on its state. My styles.xml contains: <style name="text_normal_ops"> <item name="android:gravity">left</item> <item name="andro...
Granadilla asked 9/11, 2011 at 12:1

1

Solved

I am using QPushButton() in my programme. With these buttons I rotate my object. Works fine so far. The only Problem is that i have to click multiple times to rotate the object a little further. Th...
Sarmatia asked 5/11, 2011 at 16:5
1

© 2022 - 2024 — McMap. All rights reserved.