0

I'm a student,I'm new in the Android World and I'm trying to develop my first application. I'm in troubles with my Preferences. I would like to have two Checkboxpreference in the same line, that modify two difference preference values, like this.
This is the part of code that I'm actually using in my preference.xml to show two checkbox, but they aren't in the same line:

    <?xml version="1.0" encoding="utf-8"?>
      <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">    

         <PreferenceCategory>

           <CheckBoxPreference
              android:key="key1"
              android:title="Title"
              android:summary="Summary" >
           </CheckBoxPreference>

           <CheckBoxPreference
              android:summary="Another summary"
              android:key="key2">
           </CheckBoxPreference>

         </PreferenceCategory>
      </PreferenceScreen>

Is it possible? Thanks,

Giacomo

J. Doe
  • 1

0 Answers0