如何使弹出窗口出现在按钮而不是确切位置下?目前这是我设置弹出窗口出现位置的代码,
popUpFollowUsername.showAtLocation(findViewById(R.id.dashboardRelative), Gravity.TOP, 100, 280);
我希望它直接出现在这个按钮的按钮下方
<Button android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/post"
android:paddingTop="10dip"
android:paddingBottom="10dip"
android:textSize="20sp"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:background="@drawable/dashboard_post"
android:id="@+id/btnPost"/>
我有多部安卓手机,弹出窗口出现在每部手机的不同位置,我怎样才能让它总是直接出现在帖子按钮下?