① showAsDropDown(控件):彈出的位置和 控件的位置關(guān)系如下 ② showAsDropDown(View anchor, int xoff, int yoff)...
① showAsDropDown(控件):彈出的位置和 控件的位置關(guān)系如下 ② showAsDropDown(View anchor, int xoff, int yoff)...
popWinMenu.showAtLocation(main2,Gravity.LEFT|Gravity.TOP,0,0); 示例圖如下 位置開始:屏幕的左上...
實(shí)現(xiàn)效果如下: tv1應(yīng)設(shè)置的屬性:app:layout_constraintTop_toTopOf="parent" ...