微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

带有RecyclerView的NestedScrollView中无法正确显示过度滚动效果

如何解决带有RecyclerView的NestedScrollView中无法正确显示过度滚动效果

我有nestedScrollView,其中包含一些视图和RecyclerView。但是,当我滚动RecyclerView时,过度滚动效果显示在其中。如何在nestedScrollView中显示它?

我可以使用const assetFieldSchema = new Schema( { name: {type: String,required: true},type: {type: String,required: true,default: DEFAULT_TYPE_VALUE},options: {type: Array},validation: {type: Array},value: {type: String},disabled: {type: Boolean},label: {type: String},placeholder: {type: String} },{ timestamps: true } ); assetFieldSchema.pre('save',function(this,next) { const AssetModel = mongoose.model('createAssetSchema'); if(this.unique) { // unique is the field on basis of which need to decide whether field should contain unique value or not // create index here on `AssetModel` // unable to achieve } }) 在RecyclerView中禁用过度滚动效果,但是我不知道如何在滚动RecyclerView时在nestedScrollView中启用过度滚动效果。我已经尝试了所有显而易见的解决方案。

android:overScrollMode="never"

gif

PS:我需要将一些视图放置在RecyclerView之外,因为否则RecyclerView适配器会变得不必要地复杂(必须描述所有类型的元素)。请不要说这对性能不利。就我而言,这是无关紧要的。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。