开发者

How to hide preference screen behind a second one?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜