honglei92
V2EX  ›  Android

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

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

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

    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   969 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 22:40 · PVG 06:40 · LAX 14:40 · JFK 17:40
    ♥ Do have faith in what you're doing.