I would need your help to share me your code. - How to detect Width and Height of a screen? - How to divide screen into 2 parts (full screen mode , portrait), upside (70% of screen) and downside(30% of screen)?
many thank for your help. Dorang
I would need your help to share me your code. - How to detect Width and Height of a screen? - How to divide screen into 2 parts (full screen mode , portrait), upside (70% of screen) and downside(30% of screen)?
many thank for your help. Dorang
 
    
      public int screenWidth;   public int screenHeight;
public void getScreenSize() {
        DisplayMetrics displaymetrics = new DisplayMetrics();
        a.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);        screenHeight = displaymetrics.heightPixels;         screenWidth = displaymetrics.widthPixels;
    }
