1
CODE機能していないあなたが上見ることができるようにonTouchListenerは
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.keepair.www.pinair.ImageActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/rl_rotate_text">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/tv_rotate_imageActivity"
android:text="@string/rotate"/>
</RelativeLayout>
<ImageView
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/iv_clicked_image"/>
</RelativeLayout>
を、私のXMLコードは、TextViewにはImageViewの上にあることを述べています。彼らはラップされます。
しかし、私は、photoviewattacherのために、onTouchListenerがTextViewのために書かれたものだと思う、mRotate_imageActivityは動作しません。
質問: onTouchListenerはどのように動作させることができますか?
どこに追加しますか?私に知らせてください? – touchingtwist
@touchingtwist私は私の答えを更新しました –
Ahmed Hegazy – touchingtwist