Genokiller
V2EX  ›  问与答

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

  •  
  •   Genokiller · May 10, 2019 · 1837 views
    This topic created in 2634 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   ·   825 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:54 · PVG 04:54 · LAX 13:54 · JFK 16:54
    ♥ Do have faith in what you're doing.