1
private ParallaxLayerLayout parallaxLayout;
private SensorTranslationUpdater translationUpdater;

translationUpdater = new SensorTranslationUpdater(this);
parallaxLayout.setTranslationUpdater(translationUpdater);

translationUpdater.registerSensorManager();

我想将视差布局设置为我的动态壁纸。在这里,我提到了上面的代码,用于为视差布局设置多个图像层及其完全在活动中工作,但现在如何将其设置为动态壁纸。

4

0 回答 0