<?xml version="1.0" enCoding="utf-8"?><!--~ copyright (C) 2015 The AndroID Open Source Project~~ licensed under the Apache license,Version 2.0 (the "license");~ you may not use this file except in compliance with the license.~ You may obtain a copy of the license at~~ http://www.apache.org/licenses/liCENSE-2.0~~ Unless required by applicable law or agreed to in writing,software~ distributed under the license is distributed on an "AS IS" BASIS,~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either express or implIEd.~ See the license for the specific language governing permissions and~ limitations under the license.--><androID.support.design.Widget.CoordinatorLayout androID:ID="@+ID/main_content" xmlns:androID="http://schemas.androID.com/apk/res/androID" xmlns:app="http://schemas.androID.com/apk/res-auto" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:fitsSystemwindows="true"><androID.support.design.Widget.AppbarLayout androID:ID="@+ID/appbar" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:fitsSystemwindows="true"> <androID.support.design.Widget.CollapsingToolbarLayout androID:ID="@+ID/collapsing_toolbar" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:fitsSystemwindows="true" app:collapsedTitleTextAppearance="@style/toolbarTitleStyle" app:contentScrim="@color/primary" app:expandedTitlemarginBottom="@dimen/dimen_21dp" app:expandedTitlemarginStart="@dimen/dimen_13dp" app:expandedTitleTextAppearance="@style/ExpandedToolbarTexttheme" app:layout_scrollFlags="scroll|exitUntilCollapsed"> <ImageVIEw androID:ID="@+ID/backdrop" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:fitsSystemwindows="true" androID:scaleType="centerCrop" androID:src="@drawable/locality_bg" app:layout_collapseMode="parallax" app:layout_collapseParallaxMultiplIEr="0.2"/> <androID.support.v7.Widget.Toolbar androID:ID="@+ID/toolbar" androID:layout_wIDth="match_parent" androID:layout_height="?attr/actionbarSize" app:layout_collapseMode="pin"/> </androID.support.design.Widget.CollapsingToolbarLayout></androID.support.design.Widget.AppbarLayout><androID.support.v4.Widget.nestedScrollVIEw androID:ID="@+ID/scroll_vIEw" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_vIEw_behavior"> <linearLayout androID:ID="@+ID/base_vIEw_container" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:background="@color/black_20pc" androID:orIEntation="vertical"> </linearLayout></androID.support.v4.Widget.nestedScrollVIEw><com.locon.housing.vIEws.RobotoMediumbutton androID:ID="@+ID/vIEw_Listings" androID:layout_wIDth="match_parent" androID:layout_height="@dimen/dimen_56dp" androID:layout_gravity="bottom" androID:background="@color/vIDa_loca" androID:gravity="center" androID:text="@string/alerts_vIEw_Listings" androID:textcolor="@color/white" androID:textSize="@dimen/Fontsize_medium"/><androID.support.design.Widget.floatingActionbutton androID:ID="@+ID/fab_button" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_margin="@dimen/dimen_16dp" androID:clickable="true" androID:src="@drawable/ic_action_new"/></androID.support.design.Widget.CoordinatorLayout>
似乎nestedScrollVIEw正在拦截触摸事件,而不是第一次传递给孩子.
我该如何解决这个问题?
见:https://developer.android.com/topic/libraries/support-library/revisions.html#27-0-1
After a user scrolls,they cannot click on an item in a RecyclerVIEw.
(AOSP issue 66996774)
看到同一个问题:Android – the item inside RecyclerView can’t be clicked after scroll
总结以上是内存溢出为你收集整理的Android NestedScrollView的子视图忽略第一次单击全部内容,希望文章能够帮你解决Android NestedScrollView的子视图忽略第一次单击所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)