Exemplo n.º 1
0
  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);
  }
Exemplo n.º 2
0
 @Override
 protected void onDestroy() {
   L.i(TAG, "onDestroy");
   super.onDestroy();
 }
Exemplo n.º 3
0
 @Override
 protected void onStop() {
   L.i(TAG, "onStop");
   super.onStop();
 }
Exemplo n.º 4
0
 @Override
 protected void onPause() {
   L.i(TAG, "onPause");
   super.onPause();
 }
Exemplo n.º 5
0
 @Override
 protected void onResume() {
   L.i(TAG, "onResume");
   super.onResume();
 }
Exemplo n.º 6
0
 @Override
 protected void onRestart() {
   L.i(TAG, "onRestart");
   super.onRestart();
 }