Yes, you can remove the separator from certain list items using the getView method in your adapter (which extends the base adapter)
ofc you have something like data in your adapter that references the data displayed in the list, so in your getview method getview check for specific elements as follows:
if(data[position].ID == YourElemetnsID) inflate with the specific list item layout else inflate with the general list item layout
source share