honglei92
V2EX  ›  Android

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

  •  
  •   honglei92 · Dec 23, 2020 · 12304 views
    This topic created in 2036 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   ·   5634 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 01:37 · PVG 09:37 · LAX 18:37 · JFK 21:37
    ♥ Do have faith in what you're doing.