showAtLocation

open fun showAtLocation(v: View, x: Float, y: Float)


open fun showAtLocation(anchor: View)

显示在锚点view右侧,顶部和右侧与锚点view对齐

Parameters

anchor

锚点view


open fun showAtLocation(rootView: View, x: Int, y: Int)

在指定触点显示

Parameters

rootView

布局根布局,用以获得宽度

x

触点x坐标

y

触点y坐标