Hello i am new in android and i am developing one application in which data are display in listview. Listview contains one textview and spinner. But for specific condition for example if there is one Qualification field which have one or more choice which user want to select. So at that specific condition i must give multiple checkboxes. Data are pass through webservices. I am store that data in POJO. And i already develop for textview and spinner with use of inflater. But i am facing problem for that checkbox control. How i put dynamically checkboxes when perticular condition occure. 
Edit I am create two separate XML files for that. I use following code for that check box XML file.
public View getView(final int position, View convertView, ViewGroup parent) {
for (int k = 0; k < values.length; k++) {
convertView = inflater.inflate(R.layout.filter_brands, null);
}
}
But XML file is call only ones. while the values contains 7.
I would suggest that you follow the idea posted in the comments on Mike’s answer.
But if you really want to create something programatically it can be done in this way.