开发者

How to hide preference screen behind a second one?

开发者 https://www.devze.com 2023-03-16 04:49 出处:网络
I have two PreferenceScreen . I use the theme android:theme=\"@android:style/Theme.Light.WallpaperSettings.

I have two PreferenceScreen . I use the theme android:theme="@android:style/Theme.Light.WallpaperSettings. So when开发者_开发技巧 I load the second layout, the first layout can be seen under the second layout.

I want to hide the first preference screen, not remove it. How can I do that?


If you have an onClick or other method that sends you to the second preference screen, in this method you could call:

 setContentView(.R.drawable.black_image);

to change the view of the activity in the background

also don't forget to reset it when in your onResume();

0

精彩评论

暂无评论...
验证码 换一张
取 消