① showAsDropDown(控件):弹出的位置和 控件的位置关系如下 ② showAsDropDown(View anchor, int xoff, int yoff)...

IP属地:黑龙江
① showAsDropDown(控件):弹出的位置和 控件的位置关系如下 ② showAsDropDown(View anchor, int xoff, int yoff)...
popWinMenu.showAtLocation(main2,Gravity.LEFT|Gravity.TOP,0,0); 示例图如下 位置开始:屏幕的左上...
实现效果如下: tv1应设置的属性:app:layout_constraintTop_toTopOf="parent" ...