Android Library for Printing arrays in AlertDialog interface with checkbox.
To get a Git project into your build:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Tobibur:PrintArray:v1.3.0'
}
PrintArray.setBoxTitle("Your String here for title");
//For MultiChoice Checkbox Dialog
PrintArray.diaCheckBox(Button button, String[] listItems, Context context);
//For SingleChoice RadioButton Dialog
PrintArray.diaRadioBox(Button button, String[] listItems, Context context);
// For Checkbox Dialog
PrintArray.diaCheckBox(Button button, String[] listItems, Context context,
new Onclicklistener(...));
// and for RadioButton Dialog
PrintArray.diaCheckBox(Button button, String[] listItems, Context context,
new Onclicklistener(...));
Licensed under the MIT License.