Home screen wallpaper size is way to big in landscape mode
Can you look at my coding and tell me what is missing so my wallpaper is a decent size when the device is in landscape mode?
buttonSetWallpaper.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View arg0) {
WallpaperManager myWallpaperManager = WallpaperManager
.getInstance(getApplicationContext());
try {
myWallpaperManager.setResource(R.drawable.kabaday640x4开发者_如何转开发80);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
Portrait mode shows up just fine but not landscape mode. It seems to be zoomed in too much.
Thanks.
Truly, Emad
精彩评论