How to place the title on a PreferenceScreen

0

In my app I have a configuration menu, for this I used PreferenceScree and I have this image with the configuration menu but without title:

How can I do it to put a title and like in the image

Here is my pref_setup_usb.xml

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
    android:title="PUERTO SERIE"
    android:layout="@layout/referencias_category" >
</PreferenceCategory>

<ListPreference
    android:defaultValue="9600"
    android:entries= "@array/baud_rate_nombre"
    android:entryValues="@array/baud_rate_value"
    android:key="config_baud_rate"
    android:negativeButtonText="@null"
    android:positiveButtonText="@null"
    android:title="@string/baudRate" />

<ListPreference
    android:defaultValue="8"
    android:entries= "@array/data_bits_nombre"
    android:entryValues="@array/data_bits_value"
    android:key="config_data_bit"
    android:negativeButtonText="@null"
    android:positiveButtonText="@null"
    android:title="@string/data_bits" />

<ListPreference
    android:defaultValue="1"
    android:entries= "@array/stop_bits_nombre"
    android:entryValues="@array/stop_bits_value"
    android:key="config_bit_stop"
    android:negativeButtonText="@null"
    android:positiveButtonText="@null"
    android:title="@string/stop_bits" />

    
asked by W1ll 17.11.2018 в 00:49
source

0 answers