Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

setAdapter(new adapter(insert())); and context connectting

I am on trying to saving checkbox value to be saved. and i typed the 'Context', it has problem with setAdapter on my mainactivity java. how can i solve this problem? setAdapter insert () on my main ...
user27773473's user avatar
0 votes
0 answers
14 views

Android Save RadioGroup Opening Hours Temporarily

I've looked and looked but haven't found anything like I'm trying to do on here. I'm trying to create an input for opening hours using the 7 days of the week and an opening and closing time. The ...
mystic cola's user avatar
  • 1,631
0 votes
1 answer
60 views

how do i retrieve the value of all checkBox in the RecyclerView?

The data succesfully added to the firebase, however it only send 3 data of recyclerView. based on what chatGpt since only 3 recyclerView fit in screen,thats why only 3 succesfully retrieve here is the ...
akemal's user avatar
  • 1
0 votes
1 answer
635 views

CheckBox State is not changing in jetpack compose LazyColumn items()

I have a LazyColumn in which items() exist that holds 5 checkboxes, and the state of these can be controlled by a single parent variable as well as with a specific variable. The code is below: val ...
BigBoss's user avatar
  • 156
0 votes
2 answers
43 views

Android checkbox size and alignment

I have a simple default checkbox in android app: <CheckBox android:id="@+id/sklad" android:layout_below="@id/barcode_text" android:layout_toLeftOf=&...
Darksymphony's user avatar
  • 2,633
0 votes
1 answer
55 views

In Android how can we add a checkbox with a text and a icon?

Please help me to understand how we can design the following view? view- icon with text and checkbox In reality this would be a part of a grid view. I could add a text view and a image view to have ...
Dev_Cob's user avatar
  • 97
0 votes
1 answer
98 views

React Native: Text strings must be rendered within a <Text> component. Using expo-checkbox on Android

I am trying to create a simple to do list app. Everything is working in the web, but on android I am getting the error written in the title. I have no issues when I comment out value and onValueChange ...
Multiple Sources's user avatar
-1 votes
1 answer
30 views

Android: get checkbox value from another activity with shared preferences, nullPointerException

I am trying to access the value of a checkbox (MainActivity2) from another activity (MainActivity) with sharedPreferences. Since I want to save the checkbox status, I am using sharedPreferences anyway....
Mc_Android's user avatar
0 votes
1 answer
47 views

Check listener not being called on checkbox when isChecked set to true

I have a condition where I need to execute the code in checkChangeListener directly without clicking on checkbox. I have set the checkbox.isChecked = true but still my checkChangeListener is not being ...
Siddhesh Pawar's user avatar
0 votes
1 answer
759 views

Android checkbox not inflated as MaterialCheckBox as stated in documentation

I'm trying to following the documentation from Material 3 for checkboxes: https://github.com/material-components/material-components-android/blob/master/docs/components/Checkbox.md At the very ...
Maarten's user avatar
  • 39
0 votes
0 answers
46 views

Use checkbox state to determine attribute of another XML element

I have a checkbox and a button in the same layout like in the sample code below. I want to make the button clickable only if checkbox is checked. I need to do it in XML without use of any listeners. ...
krltos's user avatar
  • 335
0 votes
0 answers
50 views

android shape within selector not working

I am trying to change the color and shape of the checkbox with the below code. The below code changes color of checkbox but does not change the shape of the button. What changes need to be done? <?...
Abm's user avatar
  • 311
0 votes
2 answers
559 views

Changing color of Checkbox in React Native

It is possible to change color of CheckBox from react-native? For now only when is checked color is Purple, but when is unchecked border color is gray. <CheckBox value={isSelected} ...
Manche's user avatar
  • 47
0 votes
2 answers
159 views

Android Checkbox weird behavior (becomes disabled and clickable after bringing fragment from backstack)

I am currently facing an issue using CheckBox in my fragment. Once the fragment is opened, the checkbox works properly. The check box's behavior changes in two case: When I bring the fragment from ...
Othmane_lam's user avatar
0 votes
1 answer
64 views

Programatically create checkbox menu in fragment java

I am having a Fragment and below is how i am adding menus in my onCreateOptionsMenu programatically @Override public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) { ...
Emmanuel Njorodongo's user avatar
1 vote
1 answer
1k views

How to get values of all the checkboxes checked using android kotlin? I am getting null pointer Exception

for logic of the question you can refer to this question:- question Logic After lots of efforts I have came to this point. Please help me solving this problem. Here is activity code:- class ...
CHETAN's user avatar
  • 562
2 votes
0 answers
246 views

How to limit selectable checkboxes to 3 in recycler view

I have a recycler view which has checkboxes as items. I want to make sure there cannot be selected more than 3 checkboxes. If 3 checkboxes are selected other checkboxes should not be selectable, only ...
TheRock's user avatar
  • 97
2 votes
2 answers
4k views

How to select multiple checkboxes using one checkbox in android kotlin?

Here is my activity code:- class SelectCoursesActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ...
CHETAN's user avatar
  • 562
1 vote
1 answer
72 views

CheckBox color change for api less than 21

I have a checkbox for which i need to change the color on checked state programmetically. For api >= 21, I can change with buttonTintList = ColorStateList(arrayOf(intArrayOf(-android.R.attr....
Yuvaraj Mahalingam's user avatar
7 votes
6 answers
8k views

How do I set border color for the checkbox using jetpack compose

I need to implement checkbox that looks like this I have tried to explore all the aspects provided by compose to alter the checkbox as below colors: CheckboxColors = CheckboxDefaults.colors() I ...
Maniya Joe's user avatar
2 votes
1 answer
295 views

onCheckedChanged is called whenever viewHolder is recycled

I am writing a todo list application and, in particular, I want the value of the checkBox to be stored in the database every time it is changed. I set this feature by adding setOnCheckedChangeListener ...
QenBau's user avatar
  • 387
0 votes
2 answers
583 views

Recyclerview notifyDataSetChanged is not working?

I have a checkbox and a recyclerview in a layout. In the adapter I created functions: selectAll & unSelectAll. I expect all items to be checked/unchecked whenever checkbox(in fragment layout) is ...
braop's user avatar
  • 196
0 votes
0 answers
31 views

Why when I remove key from SharedPreference the second checkbox that i use it on does not respond properly?

everyone! I am working on an app that needs to setChecked and disable the checkbox after it is clicked. I used SharedPreferences, however, the second checkbox does not get setChecked and disabled ...
Farida Bayramova's user avatar
0 votes
1 answer
45 views

Why after action associated with one checkbox both checkboxes are are disabled?

everyone! I want to implement app that: Click on the checkbox Move to new action Complete new action Return to checkbox action Set clicked checkbox checked and disabled In my code when I try to ...
Farida Bayramova's user avatar
2 votes
1 answer
1k views

Disable Android checkbox listener

I am working on a data collection application that while in an active state locks the screen to prevent errant user interaction. I would like to "lock" the checkbox while in this state to ...
portsample's user avatar
  • 2,072
0 votes
0 answers
365 views

How to add padding to MaterialCheckBox?

I'm using <com.google.android.material.checkbox.MaterialCheckBox from the Material library. implementation 'com.google.android.material:material:1.4.0' I'm trying to add padding at the start of the ...
DIRTY DAVE's user avatar
  • 2,711
4 votes
2 answers
7k views

Jetpack Compose Checkbox Not Showing Changed State

I have a list of specialties from which the user will check. After the user is happy with their selection, I will gather the information for selected checkboxes and save those specialties in the user'...
mucahid-erdogan's user avatar
8 votes
4 answers
13k views

Expo SDK43 "AndroidCheckBox" was not found in the UIManager

After upgrading to expo SDK 43, I am getting this error on Android: Invariant Violation: requireNativeComponent: "AndroidCheckBox" was not found in the UIManager. This error is located at: ...
Ryan Pergent's user avatar
  • 5,256
0 votes
1 answer
2k views

checked checkbox become unchecked in recyclerview after scrolling

I have a recyclerview with a list of items , when i check an item and scroll until the checked checkbox disppear , and scroll again to it , the checkbox become unchecked this is my adapter code class ...
Anas Hafidi's user avatar
0 votes
1 answer
382 views

Access the layout of an AlertDialog

This is an example found at the following address: https://newbedev.com/how-to-add-a-check-box-to-an-alert-dialog. Using this code you can create an AlertDialog with checkboxs: public void ...
nilrem's user avatar
  • 85
1 vote
1 answer
632 views

MaterialComponents CheckBox, how to keep the icon's original colors

I've recently changed my app's theme from Theme.AppCompat to Theme.MaterialComponents, and need to stop my CheckBox views from painting over the icon drawable colors. MaterialComponents views normally ...
PM4's user avatar
  • 662
2 votes
3 answers
875 views

How to remove end padding of checkable menu item?

I have an overflow menu with a checkable menu item. I would like to align the CheckBox all the way to the end, but I don't know how this can be done. My menu is defined like so: <menu xmlns:android=...
shko's user avatar
  • 94
2 votes
2 answers
813 views

Change Checkbox background on click?

I have a Checkbox with custom images inside a selector... and I am trying to achieve the following effect whnen the checkbox is clicked: Gif for reference: Tha background has to change while the ...
pepper90's user avatar
  • 113
0 votes
1 answer
536 views

Android checkbox disabled but says enabled

I didn't want to create a question for this, but I can't figure out what's happening. I have a checkbox where the enabled state is bound to a variable, checkboxEnabled in a ViewModel. This variable ...
Daniel C Jacobs's user avatar
0 votes
1 answer
290 views

Adding a new CheckBox and a editText views, when the user taps the Done on the keypad in android?

I am new to android development, What i am trying to achieve is, When the user clicks the DONE button via the on-screen keyboard(Soft input method), the existing default editText should turn into a ...
mockingbird's user avatar
4 votes
3 answers
6k views

how can we create a circular checkbox in jetpack compose?

It is usually possible to assign different shapes to a composable using a modifier, but this is not done in this composable. I want the part marked in the image to be a circle You can see the code I ...
Vahid Garousi's user avatar
0 votes
1 answer
591 views

How do I create a dropdown checkbox list in Android?

I want to create a material design exposed dropdown menu for my Android app using Kotlin, but I want the dropdown menu to be a list of checkboxes where I can then retrieve what checkboxes the user ...
Tom Darious's user avatar
0 votes
1 answer
356 views

How to create dynamic checkbox group for menu selection like Uber-eats android?

I want to create a custom view that can have a dynamic number of checkboxes to select, like Uber eats, or any other food ordering app. Can you please share ideas? Is it a good idea to display it as a ...
Dr4ke the b4dass's user avatar
0 votes
2 answers
742 views

Dismissing Keyboard on Checkbox onCheckedChange Jetpack Compose

I'm using Jetpack compose and I'm trying to dismiss the keyboard (which a TextField creates when it has focus) whenever I check the box. I have something like: val focusManager = LocalFocusManager....
SmallGrammer's user avatar
  • 1,353
2 votes
1 answer
91 views

ListView with checkbox and custom adapter, fragment not working properly

I want to make an listview with checkboxes. But the checkbox check is not working properly, is checkin right just the first element in my list. Can you help me pls? Here is my code public class ...
Silvia's user avatar
  • 117
1 vote
1 answer
149 views

How to save checkbox state in recyclerview in android

i want that when someone click in checkbox the state is saved and just the checkbox that was clicked stay checked. The problem that i found out: when i click in checkbox and starts another activity ...
izadora's user avatar
  • 13
2 votes
1 answer
562 views

How do you change the entire selection to individual choices in React Native?

We are currently developing based on React Native. And I received data by GET request through API document, and I created scroll view through MAP method. So now I'm trying to make it possible to ...
byungju's user avatar
  • 69
2 votes
3 answers
1k views

Android CheckBox gets filled in with solid color when setting button attribute

rather simple situation. I have a checkbox, I set the button attribute to my selector with two drawables for checked and unchecked. It looks proper in the editor but when I actually launch the app it ...
Nikola-Milovic's user avatar
1 vote
0 answers
175 views

Text within Checkbox is not updated with localized String

I'm seeing a strange bug with my android application, where I've a checkbox which is associated with a dialog (ie' which shows up in UI as part of dialog). <LinearLayout xmlns:android="http://...
Tom Taylor's user avatar
  • 3,530
-1 votes
1 answer
201 views

how to get selected/unselected data inside a fragment where checkbox inside an adapter within an adapter?

app screenshots I have a product detail which contains some list of variation and inside of variations I have another list of variation options. "product": { "id": 1, ...
Shantu Chandra Das's user avatar
0 votes
0 answers
52 views

Crash with the use of android checkboxes

Hi I'm working on an app that records phone calls. but now I'm working on the presentation slides of the app and I would like that if the (terms) checkbox is not selected, the btnNext button is ...
Pietro Contadini's user avatar
2 votes
2 answers
1k views

How to display total checkbox checked in a recyclerview

I am trying to create a simple pokedex where you can keep track of how many pokemons you have collected. The trouble I am having is the checkbox in a recyclerview. I want to have the total which is ...
penfew's user avatar
  • 55
0 votes
1 answer
242 views

how to save the android checkbox state in sqlite?

so i have recyclerview with checkbox Im able to retrive the items of the recylerview but the checkbox does not remain checked. i set string for checkbox value in sqlite and used true and false for the ...
Fathi Omer's user avatar
1 vote
1 answer
286 views

Using CheckBox's with button and switch

I am trying to show toast with the color name of the CheckBox that selected, but when I click on the button, nothing happens, I tried to use the LinearLayout as a parent of all views to get the id of ...
Indiana Evans's user avatar
1 vote
1 answer
2k views

Unable to set left padding for checkbox

I am trying just to set the left and right space for Checkbox, to increase the tap area range. Unfortunately, when I am trying to set the paddingStart in xml layout it does the wrong change and make ...
K.Os's user avatar
  • 5,481

1
2 3 4 5
15