grouping section within itself in android list view
I want to show a list as partitions in android. I have an adapter class for this and the getView() method return the cell in the section
fun getView(
section: Int,
position: Int,
convertView: View?,
parent: ViewGroup?
): View {
var cellView = convertView
if (cellView == null) {
cellView = LayoutInflater.from(context).inflate(R.layout.my_cell_layout, parent, false)
//same operation
}
//same operation
return cellView
}...