Questions tagged [multichoiceitems]

A multichoice list is a control where the user can select more than one item (which, typically show up as check boxes)

A multichoice list is a control where the user can select more than one item (which, typically show up as check boxes)

70 questions
14
votes
2 answers

How Do I Control on MultiChoice AlertDialog

I am using Dialog in my app to allow user to make multiple selection, Here is my code: btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // Build an AlertDialog …
Oreo
  • 2,586
  • 8
  • 38
  • 63
4
votes
2 answers

How to show selected checkbox in multiselect checkbox list in laravel?

I have a multi-select checkbox list. I want to show stored value in list using checkbox selected. User informations are stored in Partner_Prefence table and user religion column named as p_religion $profile_data=…
4
votes
2 answers

How to get and process Input for django-multiselectfield in Django rest framework via form-data

I have User model with food_prefrence field for which a user has the option to select multiple choices. In models, I am using MultiSelectField from django-multiselectfield to solve my problem. and in my User serializer, I am using…
Sumeet Kumar
  • 969
  • 1
  • 11
  • 22
3
votes
1 answer

DialogFragment buttons pushed off screen API 24 and above

I am making a custom DialogFragment that displays a selectable list of data. The list is too long to fit on the screen without scrolling. For up to API 23, everything seems to work fine, but when I test on API 24+, the DialogFragment's button's…
3
votes
1 answer

Android: weird appearance of the action bar after action mode closing

I've discovered a strange problem while try to implement ListView with multichoice mode. I use CHOICE_MODE_MULTIPLE_MODAL to turn on multichoice mode, and MultiChoiceModeListener to provide action mode menu and handle events. Here is my code: …
3
votes
1 answer

Android ExpandableListView made with custom multi-choice items doesn't maintain the same selected items

In my application there is a ExpandableListView in which I need to do with contextual action menu an action on several children of several groups. In my research I've found that multi-choice on expandable list views is not possible or really hard…
3
votes
0 answers

Custom CheckBox of MultiChoiceItems in AlertDialog

I seek how to custom a CheckBox in my MultiChoiceItems (i think the original on the phone is not good). MultiChoiceItems is in a AlertDialog: AlertDialog.Builder builder = new AlertDialog.builder(context); builder.setTitle("string") …
2
votes
0 answers

Multichoicemode listener not working when onClicklistener added to listitem's child view

I have added multichoice mode listener to my code: listview.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); listview.setMultiChoiceModeListener(this); and my listview adpater getview code is: public View getView(int position, View…
Bhoomi Zalavadiya
  • 689
  • 12
  • 26
2
votes
5 answers

How to highlight or check selected list items

How should I go about implementing Java or XML code for highlighting (or showing a checkbox over) a list row or grid item in Multiple-Choice Modal mode in Android for use with a contextual action bar? I have implemented the contextual action bar…
2
votes
0 answers

multichoice ListView with checkboxes and MarkAll button like contacts app (check boxes are only shown in selection mode)

I need a ListView which items can be selected by checkbox near them and check boxes not showing in default mode but they must be shown in selection mode (when hoding touch on one of the items) and a MarkAll button in action bar exactly like default…
Code_Worm
  • 4,069
  • 2
  • 30
  • 35
2
votes
3 answers

Android - Listview/Gridview item selection with scrolling

I am new to android and I have just started programming a simple app to try different things out. I was programming a ListView (and, in the same way a GridView) but there is something I got wrong. Each item is a couple of an image and a text…
Panda_Zero
  • 23
  • 1
  • 4
2
votes
1 answer

Collect data from multiple fragments in a viewpager

I created a custom listview with baseadapter.The list items contains a checkbox for the purpouse of multichoice.I added a function in the baseadapter that returned the positions of the selected items. To catogarize the listitems i tried to put the…
2
votes
3 answers

Change text color of android.R.layout.simple_list_item_multiple_choice

I am trying to figure out how I can change the text color of android.R.layout.simple_list_item_multiple_choice I know you can create your own listview with checkboxes but I really do not want to have to do that as the…
Jack
  • 2,043
  • 7
  • 40
  • 69
2
votes
1 answer

Android ListView Multi-Choice don't show highlight after chlicking

I have a ListView in the multi-choice mode. I don't want check box. I just want when i click on items, they could highlight to show checked state. when clicking again, the highlight will disappeared and unchecked. So now my problem is my items are…
Solorchid
  • 215
  • 5
  • 18
2
votes
0 answers

How to uncheck Checkbox in AlertDialog in android?

I have created an AlertDialog with OnMultiChoiceClickListener,I wants to uncheck checkbox when the user selects 4th option i.e I wants the user to select only 3 items. code: protected void showSelectColoursDialog() { boolean[]…
veerendra
  • 523
  • 7
  • 18
1
2 3 4 5