Tag: android recycling

在卡片视图中使回收者视图可点击

<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" android:id="@+id/home_subscribe_card" android:layout_width="match_parent" android:layout_height="72dp" android:onClick="@{vm.onGoalPress}" card_view:cardCornerRadius="4dp"> <android.support.v7.widget.RecyclerView android:id="@+id/feeds_list" android:layout_width="200dp" android:layout_height="30dp" android:layout_marginTop="6dp" /> </CardView> Click上的卡片视图正在工作,但回收者视图的区域不可点击。 如何使它成为可点击的,以便捕捉卡片视图的事件。