布局正常布局就可以
//
<ImageButton
android:id="@+id/btnPostComments"
android:layout_width="@dimen/dp_125"
android:layout_height="@dimen/dp_52"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/dp_20"
android:background="@drawable/icon_circle_talk"
/>
控制层的操作:
该activity实现: implements AbsListView.OnScrollListener
private AnimationBtn mListener = new AnimationBtn();
// ImageButton
btnPostComments = findViewById(R.id.btnPostComments);
btnPostComments.setOnClickListener(this);
// mListView是我页面里的ListView,ImageButton是在ListView的上层显示的
mListView.setOnScrollListener(this);
// 实现AbsListView.OnScrollListener后重写的方法
@Override
public void onScrollStateChanged(AbsListView view, int scrol