Questions tagged [oncheckedchanged]

Method to provide a callback when the checked state of a compound button changed in Android.

The onCheckedChanged is a static interface definition for a callback to be invoked when the checked state of a compound button (Checkbox, RadioGroup, etc.) changed:

onCheckedChanged(CompoundButton buttonView, boolean isChecked)  

which has these parameters:

  • buttonView: The compound button view whose state has changed.
  • isChecked: The new checked state of buttonView.

The Reference: CompoundButton.OnCheckedChangeListener
A sample from the Documentation: RenderScriptIntrinsic (MainActivity class)
Tags related: ,

131 questions
0
votes
1 answer

oncheckedchangelistener for checkbox in android

in my applications i have checkbox dynamically added. in application when i click on one of the check box n then click on ok buton i'm performing some operations.below is the code.its not working on click of check box. please tell me what should i…
yuva ツ
  • 3,707
  • 9
  • 50
  • 78
0
votes
1 answer

One checked node at a time in TreeView

I have a TreeView populated from database with lots of node, and each node may have some children and there is no fixed role like 2 depthes, it may be very deep. Imagine that the TreeView CheckBoxes are RadioButtons, I want my TreeView just to…
Mahdi Tahsildari
  • 13,065
  • 14
  • 55
  • 94
0
votes
2 answers

a Switch that opens a custom dialog

i have a switch that opens up a custom dialog. in the method onCheckedChanged() i instanciate the class that represent the dialog and call the method show(). the problem is that the dialog opens up only after the onCheckedChanged() ends. i tried…
Daniel
  • 55
  • 2
  • 11
0
votes
3 answers

setText in on checkedchanged?

I am trying to make a simple text game but I cant even get through the first step. There is a textview in the layout and 3 radio buttons. I want to change the text when you click at one of the radio buttons and to determine what text the app is…
0
votes
2 answers

OnCheckedChanged Nested Listview Controls

I have the following nested listview...
Dooie
  • 1,649
  • 7
  • 30
  • 47
-1
votes
1 answer

setOnCheckedChangeListener for every radiobutton

I have a radiogroup containing several radiobuttons whose background color is grey. When I click on a radiobutton I would need the clicked one to change background color to black, while others would keep the grey background. I know I can set…
Tam Nguyen
  • 25
  • 5
-1
votes
2 answers

How do I convert this jquery to pure javascript?

Hello I want to convert the following to pure JS if possible. My ultimate goal is to display the var "bar" if checkboxes with id's ("checkbox1", "checkbox2", "checkbox3") are selected + display corresponding id's ("item1", "item2",…
-1
votes
2 answers

android - Radio Buttons in a Fragment causing crash

This crashes when the fragment has launched. Could it be in the radio-button code? RadioGroup q1; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { …
-1
votes
2 answers

not work condition onCheckedChanged

I have an issue with the following condition: if (Cuadrado.isChecked() == true) This is the full code: @Override public void onCheckedChanged(RadioGroup group, int checkedId) { String dato5 = DatoMath.getText().toString(); if…
-2
votes
3 answers

listview with edittext ,checkbox and textView in android

i have created a listview with checkbox,edittext and textview. data is populated in listview with sql server. but i am not being able to use onCheckedChangedListener on checkbox. so that on clicking the checkbox corresponding data of textview and…
12345
  • 143
  • 3
  • 4
  • 13
-3
votes
2 answers

How to call function on android checkbox checked?

I have an activity, which contains 4 checkboxes. So my question is - when all these checkboxes are checked, I want a message to pop-up that should say something like "Good job!", so my question is how do I do it ? Code of the activity Code of the…
Kvenna
  • 7
  • 1
  • 3
1 2 3
8
9