3

I am getting one horizontal line in but there is not any horizontal line in the bottom ,I don't know where is wrong

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

       <PreferenceCategory >
           <PreferenceScreen 
              ...... />
       </PreferenceCategory>
       ......
    </PreferenceScreen>

enter image description here

Aditya Vyas-Lakhan
  • 13,409
  • 16
  • 61
  • 96
zys
  • 1,306
  • 3
  • 18
  • 37

3 Answers3

2

Can remove by PreferenceCategory with no title on down the last item

<PreferenceCategory
    android:title="" />
ZanderCodes
  • 122
  • 9
1

please try this.`

@Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        // remove dividers
        View rootView = getView();
        ListView list = (ListView) rootView.findViewById(android.R.id.list);
        list.setDivider(null);

    }`
suulisin
  • 1,414
  • 1
  • 10
  • 17
0

this is be created by system, we can not hide it,but it works well in android 6.0

zys
  • 1,306
  • 3
  • 18
  • 37