Full width at preference activity

Superbmir

New Member
I need to know why my preference activity don't have the full width in my device and how can I fix it.As you see on the picture I have two gray spots left and right of the preferences
DHoDD.png
my code for preferenceScreen:\[code\]<?xml version="1.0" encoding="utf-8"?><PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > <PreferenceCategory android:key="category_first" android:summary="Settings information" android:title="@string/Settings" android:layout="@layout/preference_title_bar"> <CheckBoxPreference android:defaultValue="http://stackoverflow.com/questions/12296286/true" android:key="checkBox" android:layout="@layout/custom_preference_layout" android:summary="On/Off" android:title="@string/Enable" /> </PreferenceCategory> <PreferenceCategory android:key="category_second" android:summary="schedule" android:title="@string/Schedule" android:layout="@layout/preference_title_bar" > <CheckBoxPreference android:defaultValue="http://stackoverflow.com/questions/12296286/false" android:dependency="checkBox" android:key="checkBox_Schedule" android:layout="@layout/custom_preference_layout" android:summary="On/Off" android:title="@string/Schedule" /> <Preference android:dependency="checkBox_Schedule" android:key="setSchedule" android:layout="@layout/custom_preference_layout" android:title="@string/SetSchedule" /> </PreferenceCategory> <PreferenceCategory android:summary="Select the list of keywords, that when found at the start" android:title="@string/Keywords" android:layout="@layout/preference_title_bar"> <Preference android:key="KeyWords" android:layout="@layout/custom_preference_layout" android:title="@string/SetKeywords" /> </PreferenceCategory> <PreferenceCategory android:summary="Select the contacts for the blacklist" android:title="@string/Blacklist" android:layout="@layout/preference_title_bar" > <Preference android:key="Blacklist" android:layout="@layout/custom_preference_layout" android:title="@string/SetBlacklist" /> </PreferenceCategory> <PreferenceCategory android:summary="Username and password information" android:title="Login information" android:layout="@layout/preference_title_bar" > <EditTextPreference android:layout="@layout/custom_preference_layout" android:key="username" android:summary="Please enter your login username" android:title="@string/Username" /> <EditTextPreference android:layout="@layout/custom_preference_layout" android:inputType="textPassword" android:key="password" android:summary="Enter your password" android:title="@string/Password" /> </PreferenceCategory></PreferenceScreen>\[/code\]and the code inside the manifest file:\[code\] <activity android:name=".settings.SetPreference" android:screenOrientation="portrait" />\[/code\]
 
Back
Top