honglei92
V2EX  ›  Android

红米 note pro6400 获取屏幕高度是不包含状态栏的 这个怎么判断是都包含了状态栏

  •  
  •   honglei92 · Dec 23, 2020 · 12182 views
    This topic created in 2009 days ago, the information mentioned may be changed or developed.

    mContext.getResources().getDisplayMetrics().heightPixels 这种方式来获取的屏幕高度 手机是 MIUI12.0.3 分辨率 2340*1080

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5757 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 02:11 · PVG 10:11 · LAX 19:11 · JFK 22:11
    ♥ Do have faith in what you're doing.