1Qu*_*ion 8 java android coordinates
有人能举例说明如何获得当前显示屏幕的中心坐标吗?我希望我的对象始终相对于活动视图的中心坐标.
Dev*_*ath 10
DisplayMetrics
int mWidth= this.getResources().getDisplayMetrics().widthPixels; int mHeight= this.getResources().getDisplayMetrics().heightPixels;
归档时间:
9 年,5 月 前
查看次数:
8322 次
最近记录:
8 年,1 月 前