Top-most and Bottom-most Horizontal Divider does not show up in ListView

前端 未结 5 664
情话喂你
情话喂你 2021-02-08 21:49

I am using a ListView. But the top-most and bottom-most horizontal bar does not show up. Why? I am using this:

android:divider=\"@android:drawable/divider_horiz         


        
5条回答
  •  渐次进展
    2021-02-08 22:07

    Add a dummy footer and header

    listViewContato = (ListView) view.findViewById(R.id.listview_contatos);
    listViewContato.addHeaderView(new View(getActivity()));
    listViewContato.addFooterView(new View(getActivity()));
    

提交回复
热议问题