0
我有一個標籤式佈局內的cardView/recylerView。當試圖在標籤之間滑動時沒有任何反應,但如果我刪除textView,我現在可以再次滑動。cardView與textView禁用標籤之間的滑動
如何發送觸摸事件到卡繞過textView。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bills_layout"
android:layout_width="match_parent"
android:layout_height="200dp"
android:gravity="center_horizontal">
<android.support.v7.widget.CardView
android:id="@+id/bills_card"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="fill_parent"
card_view:cardUseCompatPadding="true"
card_view:cardElevation="5dp"
card_view:cardCornerRadius="4dp">
<LinearLayout
android:id="@+id/bills_layout_select"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:weightSum="3.5"
android:paddingBottom="5dp"
android:paddingRight="5dp"
android:paddingLeft="5dp"
android:clickable="false"
android:focusable="false"
android:measureWithLargestChild="true">
<TextView
android:id="@+id/billsName"
android:layout_width="match_parent"
android:layout_height="0dp"
android:includeFontPadding="false"
android:singleLine="true"
android:text="Click"
android:layout_weight="1"
android:textSize="40sp"
android:gravity="center"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false" />
<TextView
android:id="@+id/billsAmount"
android:layout_width="match_parent"
android:layout_height="0dp"
android:text="To Add"
android:layout_weight="1"
android:includeFontPadding="false"
android:singleLine="true"
android:textSize="40sp"
android:gravity="center"
android:textColor="@color/material_deep_teal_200"
android:focusable="false"
android:clickable="false"
android:focusableInTouchMode="false" />
<TextView
android:id="@+id/nextBillsDate"
android:layout_width="match_parent"
android:layout_height="0dp"
android:includeFontPadding="false"
android:text="Bills"
android:layout_weight="1"
android:singleLine="true"
android:textSize="40sp"
android:gravity="center"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false" />
</LinearLayout>
<View
android:id="@+id/bill_selected_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorSelection"
android:visibility="invisible" />
<View
android:id="@+id/bill_due_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorClear"
android:visibility="invisible" />
</android.support.v7.widget.CardView>
</RelativeLayout>