Android Preferences screen appears underneath subscreen -


in android, have screen preferences (see first screen shot). user clicks on "choose balls" , sub screen displayed (see 2nd screen shot). however, first screen still displayed underneath 2nd screen, e.g. can see "choose balls" when subscreen displayed. how prevent this?

<?xml version="1.0" encoding="utf-8"?> <preferencescreen xmlns:android="http://schemas.android.com/apk/res/android" >     android:title="@string/livewallpaper_settings">      <preferencescreen         android:key="ball_color_category_key"         android:persistent="false"         android:title="@string/ballcolor" >          <preferencecategory android:title="@string/livewallpaper_settings" >             <checkboxpreference                 android:defaultvalue="true"                 android:key="redball"                 android:summary="display red ball."                 android:title="display red ball" />             <checkboxpreference                 android:defaultvalue="true"                 android:key="greenball"                 android:summary="display green ball."                 android:title="display green ball" />             <checkboxpreference                 android:defaultvalue="true"                 android:key="blueball"                 android:summary="display blue ball."                 android:title="display blue ball" />             <checkboxpreference                 android:defaultvalue="true"                 android:key="yellowball"                 android:summary="display yellow ball."                 android:title="display yellow ball" />             <checkboxpreference                 android:defaultvalue="true"                 android:key="purpleball"                 android:summary="display purple ball."                 android:title="display purple ball" />         </preferencecategory>     </preferencescreen>      <preferencecategory android:title="@string/livewallpaper_settings" >         <preference             android:key="facebook"             android:summary="@string/facebook"             android:title="@string/facebook" />     </preferencecategory>  </preferencescreen> 

first screen

second screen

the solution me set theme in activity in manifest.xml file:

<activity android:label="@string/livewallpaper_settings"       android:name="com.developername.livewallpapersettings"     android:exported="true"     android:icon="@drawable/ic_launcher"     android:theme="@android:style/theme.black"> </activity>` 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -