0
私はTextViewを持っていますが、それはスクロール可能ですが、クリック可能ではありません。長いテキストが含まれているので、スクロールバーを使用しています。下にスクロールしてさらに読むと、textviewでlongclickを実行すると、私のappbarが "消えます" longclickの前とlonglickの前に2つの画像を参照してください。私はこの本当に迷惑な問題をどうやって解決することができますか?ここTextViewのLongclickは、Appbarの消滅を引き起こします。
このレイアウトのための私のxmlです:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textfrag10label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Kneten"
android:textStyle="bold"
android:textColor="#FFFF4444"
android:textSize="20dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />
<TextView
android:id="@+id/textfrag10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="visible"
android:maxLines="25"
android:scrollbars="vertical"
android:text="very long text"
android:textStyle="bold"
android:layout_below="@+id/textfrag10label"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginTop="50dp"
android:textIsSelectable="true"
android:focusable="true"
android:focusableInTouchMode="true"
/>
</RelativeLayout>