NotificationManager notifMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
Notification notif = new Notification();
//Use this if you want to use the default lights for a notification
notif.defaults |= Notification.DEFAULT_LIGHTS;
//Use this if you want custom v
我的正交相机被初始化为540x960大小(相当于我的宏达电一屏大小)。然而,当我尝试在另一部手机上使用更大的屏幕时,每当我点击移动我的纹理时,都会有一个与我触摸的位置和纹理移动到的位置之间的偏移。我应该使用不同的尺寸调整技术吗?比如通过Gdx.graphics.getWidth()和.getHeight()来调整它的大小?
来自以下评论:
@Override
public boolean touchDown(float x, float y, int pointer, int button) {
xpos = x;
return false;