Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
2 answers
1k views

Checkbox doesn't check first time after visibility change from GONE to VISIBLE

I have a CheckBox in my XML layout and its visibility set to GONE. Here is my layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/...
Mehran Zamani's user avatar
1 vote
3 answers
2k views

Where check if CheckBox that is added dynamically is checked? (Android)

I have added checkboxes dynamically in my onCreate() method. When one or more of them are checked I want two buttons to be displayed. I am new to working with Android, but from what I can tell it won'...
Ingrid's user avatar
  • 526
1 vote
1 answer
89 views

How to make checkbox visible only after the first checkbox is checked

Am still a learner in android, please am trying to do the following in android. I want my checkbox to show my other checkbox only after I have click the first checkbox, but if the first is unchecked ...
user3367817's user avatar
-3 votes
5 answers
122 views

Android visibility issue with Button?

I´m using a Button and CheckBox in my code. I want when the button is clicked to make the checkboxes visible, but when I click on this button, then this error is coming in logcat: ...
vivek thakur's user avatar
0 votes
2 answers
675 views

How to make a new checkbox appear on clicking button in Android

How can I create a new checkbox every time I click a button and how do I hide a check box? Also, why doesn't checkbox.setVisibility(View.Gone); work the same way textview.setVisibility(View.Gone) ...
Daveo's user avatar
  • 13
0 votes
2 answers
119 views

Android, setVisible and NullPointException

why is my setVisibility() method typing a NullPointException ?? I don't understand that and I cant fix it, please how can I fix it, I need that checkbox set visible in pridajActivity. I have ...
Tomino's user avatar
  • 113
0 votes
3 answers
132 views

Visiblity issue with Checkbox- Android

I have two set of codes in my activity , one is for-> Saving Checkbox State even after app exits & also enable checkboxes by default And the Other One is for-> Calling visibility if the ...
Registered User's user avatar
0 votes
1 answer
2k views

Change Visibility with CheckBox - Android

I want to change the visibility of the ProgressBar according to the checked CheckBoxes , but when I implement the following code, the ProgressBar goes invisible forever ProgressBar progressBar1 = (...
Registered User's user avatar
1 vote
2 answers
1k views

Detect if CheckBox is checked and call Visibility - Android

How to make the visibility method used in onpagestarted and onpagefinished detect whether a checkbox is checked ? in other words, i want to modify and use this method for checkBoxes .for example if R....
Registered User's user avatar
0 votes
1 answer
161 views

How to make listView item and view out of it appear at the same time?

my wish is, to have a listView and when i choose delete in the contextmenu appearing when I do a longclick on a listview item, there should appear checkboxes in each listview element and a buttonbar ...
Spyrko's user avatar
  • 27
0 votes
1 answer
90 views

Update check-boxes status with visibility change

I am having check boxes to control the visibility of different views. When check box status is changed similarly visibility is changed, which is working fine. In my app views visibility also changes ...
Khayam Gondal's user avatar
0 votes
1 answer
1k views

Android: Hiding and Showing CheckBoxPreference

I have a PreferenceScreen with multiple PreferenceCategory that have many CheckBoxPreferences in them. I'm trying to create an expandable list concept by hiding or displaying a category on click of ...
Jasjit Singh Marwah's user avatar
4 votes
1 answer
20k views

Visible and invisible with a checkbox

i have a screen with 5 lines.each line has 3 editTexts.after the 5th line there is a checkbox and below it another line with 3 edittexts.i would like,the 6th line to be invisible when i firstly open ...
menu_on_top's user avatar
  • 2,613
7 votes
3 answers
13k views

Android visibility issue with checkbox

I´m using a checkbox in my code that when its checked it makes a textview and a editText visibles, but if I uncheck de checkbox they continue being visible instead of dissapear. Here is the code: ...
fxi's user avatar
  • 115