How to add section separators / dividers to a ListView?
问题 I'm currently making a menu for my app, using a DrawerLayout and an ArrayAdapter subclass to achieve something looking like Facebook's drawer menu. I currently have no problems creating the list, but now that it looks good, i'd like to add separators between different kind of options (i.e. user-related and application-related options) and a search bar on top of the menu. The code of my current ArrayAdaptor subclass is as following : public class DrawerMenuAdapter extends ArrayAdapter<String>{