Genokiller
V2EX  ›  问与答

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

  •  
  •   Genokiller · May 10, 2019 · 1743 views
    This topic created in 2586 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   ·   3267 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:49 · PVG 19:49 · LAX 04:49 · JFK 07:49
    ♥ Do have faith in what you're doing.