在EaseShowBigImageActivity中,显示大图片,对大图片进行长按监听
1.在ease_photo_view_save_pic.xml布局文件中添加TextView控件,点击监听,保存图片
<TextView
android:visibility="invisible"
android:id="@+id/ease_photo_view_save_pic"
android:layout_width="match_parent"
android:layout_height="36dp"
android:layout_alignParentBottom="true"
android:background="#DDDDDD"
android:gravity="center"
android:text="保存图片" />
2.找到控件
TextView textView = (TextView) findViewById(R.id.ease_photo_view_save_pic);
EasePhotoView image = (EasePhotoView) findViewById(R.id.image);
3.处理监听
image.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
textView.