honglei92
V2EX  ›  Android

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

  •  
  •   honglei92 · Dec 23, 2020 · 12075 views
    This topic created in 1971 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   ·   1148 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:34 · PVG 07:34 · LAX 16:34 · JFK 19:34
    ♥ Do have faith in what you're doing.