类似 iOS 带弹簧效果的左右滑动控件,可作为 AbsListView 和 RecyclerView 的 item(作为 AbsListView 的 item 时的点击事件参考代码家的 https://github.com/daimajia/AndroidSwipeLayout )

Overview

🏃 BGASwipeItemLayout-Android 🏃

License Maven Central

类似iOS带弹簧效果的左右滑动控件,可作为AbsListView和RecyclerView的item。支持给BGASwipeItemLayout和其子控件设置margin和padding属性

效果图

1-event 2-listview 3-recyclerview

Gradle依赖

dependencies {
    compile 'com.android.support:support-v4:latestVersion'
    compile 'cn.bingoogolapple:bga-swipeitemlayout:latestVersion@aar'
}

BGASwipeItemLayout方法说明

/**
 * 以动画方式打开
 */
public void openWithAnim()

/**
 * 以动画方式关闭
 */
public void closeWithAnim()

/**
 * 直接打开
 */
public void open()

/**
 * 直接关闭。如果在AbsListView中删除已经打开的item时,请用该方法关闭item,否则重用item时有问题。RecyclerView中可以用该方法,也可以用closeWithAnim
 */
public void close()

/**
 * 当前是否为打开状态
 *
 * @return
 */
public boolean isOpened()

/**
 * 当前是否为关闭状态
 *
 * @return
 */
public boolean isClosed()

/**
 * 获取顶部视图
 *
 * @return
 */
public View getTopView()

/**
 * 获取底部视图
 *
 * @return
 */
public View getBottomView()

/**
 * 设置是否可滑动
 *
 * @return
 */
public void setSwipeAble(boolean swipeAble)

BGASwipeItemLayoutDelegate接口说明

/**
 * 变为打开状态
 *
 * @param swipeItemLayout
 */
void onBGASwipeItemLayoutOpened(BGASwipeItemLayout swipeItemLayout);

/**
 * 变为关闭状态
 *
 * @param swipeItemLayout
 */
void onBGASwipeItemLayoutClosed(BGASwipeItemLayout swipeItemLayout);

/**
 * 从关闭状态切换到正在打开状态
 *
 * @param swipeItemLayout
 */
void onBGASwipeItemLayoutStartOpen(BGASwipeItemLayout swipeItemLayout);

自定义属性说明

属性名 说明 默认值
bga_sil_swipeDirection 往左滑还是往右滑为打开状态(left或right) left
bga_sil_bottomMode 底部视图展现方式(layDown或pullOut) pullOut
bga_sil_springDistance 弹簧距离 0dp
bga_sil_swipeAble 是否可左右滑动 true

关于我

新浪微博 个人主页 邮箱 BGA系列开源库QQ群
bingoogolapple bingoogolapple.cn [email protected] BGA_CODE_CLUB

打赏支持

如果觉得 BGA 系列开源库对您有用,请随意打赏。

License

Copyright 2015 bingoogolapple

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.
You might also like...
Vanilla Music Player for Android (abandoned). Visit https://github.com/vanilla-music/vanilla for an actively developed fork

Translating You can help translate here. If your language isn't on the list, open an issue and I can add it. Building To build you will need: A Java c

It makes a preview from an url, grabbing all the information such as title, relevant texts and images. This a version for Android of my web link preview https://github.com/LeonardoCardoso/Link-Preview
It makes a preview from an url, grabbing all the information such as title, relevant texts and images. This a version for Android of my web link preview https://github.com/LeonardoCardoso/Link-Preview

LeoCardz Link Preview for Android It makes a preview from an url, grabbing all the information such as title, relevant texts and images. Visual Exampl

A Java client for the Sixpack A/B testing framework https://github.com/seatgeek/sixpack

sixpack-java A Java client for SeatGeek's Sixpack a/b testing framework: https://github.com/seatgeek/sixpack Installing Sixpack-java is currently only

Wizard Pager is a library that provides an example implementation of a Wizard UI on Android, it's based of Roman Nurik's wizard pager (https://github.com/romannurik/android-wizardpager)
Wizard Pager is a library that provides an example implementation of a Wizard UI on Android, it's based of Roman Nurik's wizard pager (https://github.com/romannurik/android-wizardpager)

Wizard Pager Wizard Pager is a library that provides an example implementation of a Wizard UI on Android, it's based of Roman Nurik's wizard pager (ht

Android circle seekbar widget inspired from: https://github.com/LarsWerkman/HoloColorPicker
Android circle seekbar widget inspired from: https://github.com/LarsWerkman/HoloColorPicker

Android HoloCircleSeekBar A Circle SeekBar inspired by Android Holo ColorPicker designed by Marie Schweiz and developed by Lars Werkman. How to integr

Expirable Disk Lru Cache is a secure(with encryption) wrapper for [DiskLruCache](https://github.com/JakeWharton/DiskLruCache) that allows expiring of key/value pairs by specifying evictionTimeSpan. It has very simple API.

ExpirableDiskLruCache ExpirableDiskLruCache is a wrapper for DiskLruCache that allows expiring of key/value pairs by specifying evictionTimeSpan. It h

Material Design tap target for Android. https://sjwall.github.io/MaterialTapTargetPrompt/
Material Design tap target for Android. https://sjwall.github.io/MaterialTapTargetPrompt/

Material Tap Target Prompt A Tap Target implementation in Android based on Material Design Onboarding guidelines. For more information on tap targets

It makes a preview from an url, grabbing all the information such as title, relevant texts and images. This a version for Android of my web link preview https://github.com/LeonardoCardoso/Link-Preview
It makes a preview from an url, grabbing all the information such as title, relevant texts and images. This a version for Android of my web link preview https://github.com/LeonardoCardoso/Link-Preview

LeoCardz Link Preview for Android It makes a preview from an url, grabbing all the information such as title, relevant texts and images. Visual Exampl

Simple API to perform AES encryption on Android. This is the Android counterpart to the AESCrypt library Ruby and Obj-C (with the same weak security defaults :( ) created by Gurpartap Singh. https://github.com/Gurpartap/aescrypt

AESCrypt-Android Simple API to perform AES encryption on Android with no dependancies. This is the Android counterpart to the AESCrypt library Ruby an

Shows how to build a VPN app for Android using leaf: https://github.com/eycorsican/leaf .

aleaf Shows how to build a VPN app for Android using leaf. Dependencies Rust GCC/clang Make SDK NDK LLVM (Windows host only, see below) Building Linux

This project is basically PowerNukkit but just in Kotlin (check out the original PowerNukkit source here: https://github.com/PowerNukkit/PowerNukkit)
This project is basically PowerNukkit but just in Kotlin (check out the original PowerNukkit source here: https://github.com/PowerNukkit/PowerNukkit)

Introduction Nukkit is nuclear-powered server software for Minecraft: Pocket Edition. It has a few key advantages over other server software: Written

Unidirectional Data Flow in Kotlin - Port of https://github.com/ReSwift/ReSwift to Kotlin
Unidirectional Data Flow in Kotlin - Port of https://github.com/ReSwift/ReSwift to Kotlin

ReKotlin Port of ReSwift to Kotlin, which corresponds to ReSwift/4.0.0 Introduction ReKotlin is a Redux-like implementation of the unidirectional data

Copy of https://github.com/joreilly/MortyComposeKMM to support Android & JVM with Jetpack Compose Multiplatform
Copy of https://github.com/joreilly/MortyComposeKMM to support Android & JVM with Jetpack Compose Multiplatform

Rick&Morty with Compose Multiplatform (Android/Desktop) A copycat of https://github.com/joreilly/MortyComposeKMM to support Android & JVM with Jetpack

Partial port of https://github.com/davemorrissey/subsampling-scale-image-view library to Jetpack Compose.
Partial port of https://github.com/davemorrissey/subsampling-scale-image-view library to Jetpack Compose.

ComposeSubsamplingScaleImage Early preview (expect bugs) dependencies { implementation 'com.github.K1rakishou:ComposeSubsamplingScaleImage:fab4ae38c

https://github.com/osp54/BetterConsole

Better console Kotlin version of the plugin https://github.com/osp54/BetterConsole Makes using the console more comfortable: Setup Clone this reposito

An Android library which provides simple Item animations to RecyclerView items
An Android library which provides simple Item animations to RecyclerView items

RecyclerViewItemAnimators Library Travis master: This repo provides: Appearance animations Simple animators for the item views Quick start You can now

 AutoPlayer - A player based on ExoPlayer for play video automatically in RecyclerView, when an item is visible.
AutoPlayer - A player based on ExoPlayer for play video automatically in RecyclerView, when an item is visible.

A player based on ExoPlayer for play video automatically in RecyclerView, when an item is visible.

📲  Android Application to track any user activity on Github built using the Github Developers API. Used Retrofit to fetch data and MVVM Architecture.
📲 Android Application to track any user activity on Github built using the Github Developers API. Used Retrofit to fetch data and MVVM Architecture.

Github Visualizer 📲 Android Application to track any user activity on Github built using the Github Developers Api. A sample application to demonstra

A simple app that consumes The GitHub APIs to display github users. The aim was to learn about different jetpack libraries, built with MVVM pattern.
A simple app that consumes The GitHub APIs to display github users. The aim was to learn about different jetpack libraries, built with MVVM pattern.

A simple app that consumes The GitHub APIs to display github users. The aim was to learn about different jetpack libraries, built with MVVM pattern.

Comments
  • BUG反馈

    BUG反馈

    E/InputEventReceiver(23376): Exception dispatching input event. F/MobUncaughtExceptionHandler(23376): length=2; index=-1 F/MobUncaughtExceptionHandler(23376): java.lang.ArrayIndexOutOfBoundsException: length=2; index=-1 F/MobUncaughtExceptionHandler(23376): at android.support.v4.widget.ViewDragHelper.processTouchEvent(ViewDragHelper.java:1147) F/MobUncaughtExceptionHandler(23376): at cn.bingoogolapple.swipeitemlayout.BGASwipeItemLayout.onTouchEvent(BGASwipeItemLayout.java:328) F/MobUncaughtExceptionHandler(23376): at android.view.View.dispatchTouchEvent(View.java:7719) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) F/MobUncaughtExceptionHandler(23376): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) F/MobUncaughtExceptionHandler(23376): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2077) F/MobUncaughtExceptionHandler(23376): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1522) F/MobUncaughtExceptionHandler(23376): at android.app.Activity.dispatchTouchEvent(Activity.java:2587) F/MobUncaughtExceptionHandler(23376): at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) F/MobUncaughtExceptionHandler(23376): at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) F/MobUncaughtExceptionHandler(23376): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2025) F/MobUncaughtExceptionHandler(23376): at android.view.View.dispatchPointerEvent(View.java:7899) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3997) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3874) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3485) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3454) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3561) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3462) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3618) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3485) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3454) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3462) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5582) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5562) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5533) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5665) F/MobUncaughtExceptionHandler(23376): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) F/MobUncaughtExceptionHandler(23376): at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method) F/MobUncaughtExceptionHandler(23376): at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:5638) F/MobUncaughtExceptionHandler(23376): at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:5684) F/MobUncaughtExceptionHandler(23376): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) F/MobUncaughtExceptionHandler(23376): at android.view.Choreographer.doCallbacks(Choreographer.java:574) F/MobUncaughtExceptionHandler(23376): at android.view.Choreographer.doFrame(Choreographer.java:

    @Override public boolean onTouchEvent(MotionEvent event) { mDragHelper.processTouchEvent(event); //此处为328错误的出处 mGestureDetectorCompat.onTouchEvent(event); return true; }

    opened by MrChangyaohua 1
  • bug反馈

    bug反馈

    为什么会出现以下的问题呢?我的那里用法不对吗?

    02-24 19:19:50.583 24573-24573/? E/InputEventReceiver: Exception dispatching input event. 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: length=2; index=-1 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: java.lang.ArrayIndexOutOfBoundsException: length=2; index=-1 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.support.v4.widget.ViewDragHelper.processTouchEvent(ViewDragHelper.java:1147) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at cn.bingoogolapple.swipeitemlayout.BGASwipeItemLayout.onTouchEvent(BGASwipeItemLayout.java:328) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.View.dispatchTouchEvent(View.java:7719) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2238) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2077) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1522) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.app.Activity.dispatchTouchEvent(Activity.java:2587) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2025) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.View.dispatchPointerEvent(View.java:7899) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3997) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3874) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3485) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3454) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3561) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3462) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3618) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3485) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3454) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3462) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5582) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5562) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5533) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5665) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:5638) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:5684) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.Choreographer.doCallbacks(Choreographer.java:574) 02-24 19:19:50.603 24573-24573/? A/MobUncaughtExceptionHandler: at android.view.Choreographer.doFrame(Choreographer.java:

    opened by MrChangyaohua 1
  • 在滑动时点击Item 出现 java.lang.IllegalArgumentException: pointerIndex out of range

    在滑动时点击Item 出现 java.lang.IllegalArgumentException: pointerIndex out of range

    12-21 10:38:47.132 8356-8356/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.dym.film, PID: 8356 java.lang.IllegalArgumentException: pointerIndex out of range at android.view.MotionEvent.nativeGetAxisValue(Native Method) at android.view.MotionEvent.getX(MotionEvent.java:1979) at android.support.v4.view.MotionEventCompatEclair.getX(MotionEventCompatEclair.java:32) at android.support.v4.view.MotionEventCompat$EclairMotionEventVersionImpl.getX(MotionEventCompat.java:110) at android.support.v4.view.MotionEventCompat.getX(MotionEventCompat.java:462) at android.support.v4.widget.ViewDragHelper.processTouchEvent(ViewDragHelper.java:1145) at cn.bingoogolapple.swipeitemlayout.BGASwipeItemLayout.onTouchEvent(BGASwipeItemLayout.java:328) at android.view.View.dispatchTouchEvent(View.java:7714) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2068) at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1515) at android.app.Activity.dispatchTouchEvent(Activity.java:2475) at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2016) at android.view.View.dispatchPointerEvent(View.java:7894) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3995) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3874) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3485) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3454) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3561) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3462) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3618) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3485) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3454) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3462) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3435) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5580) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5560) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5531) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5660) at andr 问题出在ViewDragHelper, 应该需要try catch掉!
    opened by liungkejin 0
Owner
王浩
自助者天助之,学习ing
王浩
Material Design tap target for Android. https://sjwall.github.io/MaterialTapTargetPrompt/

Material Tap Target Prompt A Tap Target implementation in Android based on Material Design Onboarding guidelines. For more information on tap targets

Sam Wall 1.5k Dec 29, 2022
iOS 7/8 style side menu with parallax effect.

RESideMenu iOS 7/8 style side menu with parallax effect inspired by Dribbble shots (first and second). Since version 4.0 you can add menu view control

Roman Efimov 7.2k Dec 28, 2022
A custom SwipeRefreshLayout to support the pull-to-refresh featrue.RecyclerView,ListView,GridView,NestedScrollView,ScrollView are supported.

SuperSwipeRefreshLayout A custom SwipeRefreshLayout to support the pull-to-refresh featrue.You can custom your header view and footer view. RecyclerVi

Zheng Haibo(莫川) 1.3k Dec 13, 2022
ItemDecorator - Custom item decorator for adding divider for only the first item of a RecyclerView

ItemDecorator Custom item decorator for adding divider for only the first item o

null 1 Apr 1, 2022
Android Navigation Fragment Share Element Example: Use Share Element Transition with recyclerView Item and ViewPager2 Item.

Android-Navigation-Fragment-Share-Element-Example 说明 Android 使用Navigation导航切换Fragment中使用共享元素过渡动画的例子:将在listFragment的RecyclerView的Item共享元素过渡到pagerFragme

null 3 Sep 28, 2022
Android fillable progress view working with SVG paths. This is a nice option too if you want to create an interesting branding logo for your app. Based on the iOS project: https://github.com/poolqf/FillableLoaders

Android FillableLoaders Android Open Source library providing an interesting fillable progress view working with SVG paths. This is a nice option too

Jorge Castillo 2k Jan 1, 2023
An Android Layout which has a same function like https://github.com/romaonthego/RESideMenu

ResideLayout An Android Layout which has a same function like https://github.com/romaonthego/RESideMenu. Can be used on Android 1.6(I haven't try it.)

Yang Hui 392 Oct 12, 2022
Material Design tap target for Android. https://sjwall.github.io/MaterialTapTargetPrompt/

Material Tap Target Prompt A Tap Target implementation in Android based on Material Design Onboarding guidelines. For more information on tap targets

Sam Wall 1.5k Dec 29, 2022