An event that occurs when a user clicks a button element located within a user interface
Questions tagged [buttonclick]
1042 questions
5
votes
1 answer
Change fragments when button is clicked
How to change fragments when button is clicked? I'm using android studio 1.5 and using the new navigation drawer.
This is my MainActivity.java
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import…

POSVOC
- 65
- 1
- 1
- 8
5
votes
6 answers
how to open configure portable Wi-Fi hotspot setting by onclick?
how to open the following directory:settings/wireless and networks/Tethering and portable hotspot/portable Wi-Fi hotspot settings/configure portable Wi-Fi hotspot/ on button click?
i want to achieve this using onClick method not id method.
below is…

Anonymous
- 1,389
- 3
- 11
- 16
5
votes
5 answers
How to get OnClick() from programmatically added buttons?
I have added some buttons with the following lines:
for (int i=0; i

Mokkapps
- 2,028
- 9
- 42
- 67
5
votes
4 answers
How can I keep executing work while a button is pressed?
I want to keep executing work while a button is pressed, using Java. When the button is released, the work should stop. Something like this:
Button_is_pressed()
{
for(int i=0;i<100;i++)
{
count=i;
print "count"
}
}
How…

BhavikKama
- 8,566
- 12
- 94
- 164
4
votes
3 answers
Android Button Click Not Working
Can someone tell me why the code from "Starting new code" onwards does not work?
The onClick method in the click event listeners does not get called and even the text change for the label does not take place.
The log shows ID's for the buttons so…

Ali
- 12,354
- 9
- 54
- 83
4
votes
2 answers
Android - Add item to custom listview on button click
I currently have a custom listview where each item on the list contains two rows of text. What I would like to do is each time a user clicks on the button, it creates a new item on the list with the text that the user inputted. While I know how to…

Splitusa
- 1,181
- 7
- 31
- 51
4
votes
2 answers
How can I click on numeric buttons (onclick Event) using selenum in python?
I have a HTML code like this:
4
votes
1 answer
can't tap on button without closing the keyboard
I am using react native 0.4
I have a modal with a TextInput, if i want to tap on one of the buttons that are on the modal I need to tap it twice - first tap closes the keyboard and only then I can tap on the button.
I would like to be able to tap on…

yossi
- 12,945
- 28
- 84
- 110
4
votes
2 answers
How to create Button_Click() Event for Bootstrap Button?
Bootstrap login form is below:
4
votes
2 answers
Android ListView: How to add a row with a buttonclick
I have a listview. In it, each row had a text saying 0:00. But now, I added a button on my actionbar but then I got stuck. I don't know how to make the button create a new row, displaying 0:00
This is my code for the data in a row.
public void…

user2554781
- 63
- 5
4
votes
3 answers
How to make a button unclickable
So right now i am having trouble making the next button unclickable when it is on the last page of the activity. As of right now it goes back to the first screen. How do i make it so that it know when to grey out the button or make it unclickable…

Dan
- 63
- 1
- 2
- 8
4
votes
2 answers
Button OnClickListener not working
I have a button, when I click a dialog box appears. The problem is, the setOnClickListener is not responding to my button.
Here is my Java code:
Button b1 = (Button) findViewById(R.id.button1);
b1.setOnClickListener(usage);
b2 = (Button)…

Droid
- 419
- 4
- 15
4
votes
2 answers
run a thread after another finishes in a button click
I want to combine 2 different button click events in one button click. I have two threads in these two button click events to update text box in winform. When I am trying to combine these two buttons, threads run synchronously but I need thread2…

snvngrc
- 177
- 2
- 4
- 12
4
votes
3 answers
Android OnClickListener not firing for button on separate Layout
I have two different layouts. One is which loads while start of the Activity and the other which loads after running some checks and creates a custom dialog. The Dialog has a button in it to trigger, at this point in time, onclick has a Toast…

TheHamstring
- 712
- 2
- 6
- 22
4
votes
2 answers
Sending out two textboxes as opposed to one dynamically
I got this code from a previous post on here about dynamically making a panel based ona click event of a button. For some reason its giving me two textbox's and I'm having issues deciphering the code. Been a while since I've dealt with this kind…

user1574685
- 181
- 1
- 2
- 11