opktrack.blogg.se

Java android studio listview
Java android studio listview




java android studio listview

ArrayAdapter arrayAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_multiple_choice, dataList) package Even it is a checkbox, it can be single checked if ListView’s android:choiceMode value is singleChoice. simple_list_item_multiple_choice : Display a checkbox in the right of each list item.Even it is a radio button, it can be multiple checked if ListView’s android:choiceMode value is multipleChoice. simple_list_item_single_choice : Display a radio button in the right of each list item.simple_list_item_checked : Each list item is a checked checkbox.simple_list_item_2 : Each list item is a TextView object, text size is bigger.simple_list_item_1 : Each list item is a TextView object.Please note the second parameter for ArrayAdapter constructor can have below values. If you can not watch the above video, you can see it on the youtube URL






Java android studio listview