开发者

How to call back live wallpaper preview layout

开发者 https://www.devze.com 2023-03-14 05:48 出处:网络
In livewallpaper it has two button setting and set . When I click button setting it will call preference screen . I want to com开发者_开发技巧e back to livewallpaper preview screen when I click any it

In livewallpaper it has two button setting and set . When I click button setting it will call preference screen . I want to com开发者_开发技巧e back to livewallpaper preview screen when I click any item in preference screen . How can I do it . Thanks in advance !


If you are referencing to CubeLiveWallpaper example from sample android code, add following code to CubeWallpaper2Settings.java

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
    finish();
}
0

精彩评论

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

关注公众号