V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Genokiller
V2EX  ›  问与答

Android 相关, popupWindow.showAtLocation(v,Gravity.TOP,x,y)的一些疑惑

  •  
  •   Genokiller · May 10, 2019 · 1655 views
    This topic created in 2545 days ago, the information mentioned may be changed or developed.
    popupWindow.showAtLocation(v,Gravity.TOP,x,y)方法,在 y 偏移量小于状态栏高度时,展示时显示在状态栏下方,当 y 大于状态栏高度时,却要额外减去状态栏高度才能正确显示,源码中没找到相关机制,求教大佬们
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2841 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:43 · PVG 23:43 · LAX 08:43 · JFK 11:43
    ♥ Do have faith in what you're doing.