public void getStatusheight() { L.i("MoveImageView2", "statusBarHeight=" + ScreenUtils.getStatusHeight(MainActivity.this) + ""); L.i("MoveImageView2", "setScreenW=" + ScreenUtils.getScreenWidth(MainActivity.this) + ""); L.i("MoveImageView2", "setStatusH=" + ScreenUtils.getScreenHeight(MainActivity.this) + ""); L.i( "MoveImageView2", "getNavigationBarHeight=" + ScreenUtils.getNavigationBarHeight(MainActivity.this) + ""); moveImageView2.setStatusH(ScreenUtils.getStatusHeight(MainActivity.this)); moveImageView2.setScreenW(ScreenUtils.getScreenWidth(MainActivity.this)); moveImageView2.setScreenH(ScreenUtils.getScreenHeight(MainActivity.this)); moveImageView2.setavigation(ScreenUtils.getNavigationBarHeight(MainActivity.this)); // screenW = ScreenUtils.getScreenWidth(context); // // 获取屏幕高度 // screenH = ScreenUtils.getScreenHeight(context); }
@Override protected void onDestroy() { L.i(TAG, "onDestroy"); super.onDestroy(); }
@Override protected void onStop() { L.i(TAG, "onStop"); super.onStop(); }
@Override protected void onPause() { L.i(TAG, "onPause"); super.onPause(); }
@Override protected void onResume() { L.i(TAG, "onResume"); super.onResume(); }
@Override protected void onRestart() { L.i(TAG, "onRestart"); super.onRestart(); }