GithubHelp home page GithubHelp logo

interestinghua / bgaswipeitemlayout-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bingoogolapple/bgaswipeitemlayout-android

0.0 2.0 0.0 1.55 MB

带弹簧效果的左右滑动控件、作为ListView和RecyclerView的Item左右滑动过程中不会触发长按和点击事件。(作为AdapterView的item时的点击事件参考https://github.com/daimajia/AndroidSwipeLayout

Java 100.00%

bgaswipeitemlayout-android's Introduction

🏃BGASwipeItemLayout-Android v1.0.0🏃

带弹簧效果的左右滑动控件、作为ListView和RecyclerView的Item左右滑动过程中不会触发长按和点击事件。 ( 作为AdapterView的item时的点击事件参考https://github.com/daimajia/AndroidSwipeLayout

写这个控件的初衷:产品经理要求在列表中的item展开时的EditText中编辑并提交,最开始是使用代码家的AndroidSwipeLayout+ListView实现的, 但是在魅族3和魅族4上运行时,ListView中的EditText没法弹出键盘,所以就换成了代码家的AndroidSwipeLayout+RecyclerView实现,但是左右滑动 过程中会触发点击和长按item事件,然后单身:dog:从520那天就开始搞这个控件了:joy:

效果图

Image of 测试各种事件 Image of ListViewDemo Image of RecyclerViewDemo

Gradle

dependencies {
    compile 'cn.bingoogolapple:bga-swipeitemlayout:1.0.0@aar'
}
详细用法请查看Demo🐾

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.

bgaswipeitemlayout-android's People

Contributors

bingoogolapple avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.