Questions tagged [buttonclick]

An event that occurs when a user clicks a button element located within a user interface

1042 questions
4
votes
2 answers

Android Display Numeric Keypad on Button Click

In my application, I am trying to display the numeric keypad when the user clicks on a button. When the button is clicked, I shift the focus to the EditText in my layout using requestFocus() and next I need to display the numeric keypad so that the…
Swayam
  • 16,294
  • 14
  • 64
  • 102
3
votes
1 answer

Button onClick in viewPager?

I've got a viewPager, and in second page i've got a button. I want it to do something onClick but it's not doing. I've done on xml file: android:onClick="buttonClick" And also i've tried setOnClickListener both inside and outside of…
yahya
  • 4,810
  • 3
  • 41
  • 58
3
votes
3 answers

How can I add click event to onBackPressed in Fragment?

I want to add on-click listener to onBackPressed() button. How can I do that? fun onBackPressed(it: View) { val title = binding.edittexttitle.text val notes = binding.edittextnote.text val d = Date() val s:…
3
votes
2 answers

How can I disable Button(IconButton) click?

I try to assign null to click function but it does not work disabled color. I tried this code section. IconButton( disabledColor: Colors.redAccent, icon: Icon( Icons.hdr_enhanced_select, color:…
Mevlüt Gür
  • 155
  • 1
  • 10
3
votes
0 answers

Button clicks are not working in Samsung device having Os 10 or more

I have a layout with a video view, which occupies the whole screen and few buttons, ImageViews, and layouts over it. When the video reaches some point(some secs), I make the eventNote layout visible and pause the video. I have a close button in the…
Manikandan
  • 1,479
  • 6
  • 48
  • 89
3
votes
2 answers

Which event should be used for buttons?

I have a button and I want to perform an action if the user fires this button. I remember being told that the click event should not be used for this purpose because it only fires if the user, well, clicks the button and not if keyboard is used;…
user4385532
3
votes
5 answers

How to make `onClick()` in xml call two methods?

I want to make onClick() in my layout xml trigger two methods from two viewmodels. Code:
Abhimanyu
  • 11,351
  • 7
  • 51
  • 121
3
votes
10 answers

Button Clicked change Colour

So little bit stuck here, I have several buttons that I want to do separate actions. For example of someone clicks the colour green it changes the paragraph text colour to green, I accomplished the first one but I can't seem to work others, what's…
ahlie94
  • 171
  • 11
3
votes
2 answers

ASP.net c# button click

Given: I need in my code behind the have the onclick event, but the onclick event in this case refers to clientonclick, I have to use the button HTML tag not ASP:button because ASP:Button…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
3
votes
1 answer

create favourite button using toogleButton

i'm trying to add a favourite button using toogleButton that displays a certain icon when unchecked and another icon when checked. I tried this but isn't working. Here is the toggleButton
3
votes
2 answers

Xamarin Custom View Button Binding

I have a custom view with 2 button in it - One on the left and one on the right. I want to have a bindable property to dictate which function will be called by each button, but the function I want to call is in the original content page, not the…
3
votes
4 answers

Switching over to next Screen from the main Activity by clicking on the Button

I am working on an application where I need to go to the next Screen form the Main Actvity when I Click on the Image Button of the Main Activity Screen. I had searched a bit on Net regarding this and found something like the OnClickListener method.…
David Brown
  • 4,783
  • 17
  • 50
  • 75
3
votes
1 answer

jQuery to cycle through images on button press

Complete novice at coding so apologies in advance but I'm tearing my hair out about this question! Task at hand I'm trying to get jQuery to cycle through a set of images upon a button click in an endless loop. I've got the following so far and I…
Jones
  • 33
  • 4
3
votes
1 answer

Response.Redirect with querystring

This is a simple question but I was wondering how to do this. I have a gridview that has a list of customers and in the gridview there is a linkbutton as a template field that says view cart. In the onclick method I…
Jamie
  • 107
  • 2
  • 11
3
votes
1 answer

Show dynamic content in bootstrap modal ONCLICK event

I have a table containing a list generated from mySQL database. Each record have a view button corresponding to it. I want to display the row information in bootstrap modal popup when someone clicks on the view button. Issue Not showing popup modal…
Jasir alwafaa
  • 586
  • 1
  • 7
  • 24