Giter VIP home page Giter VIP logo

recyclerviewextensions's Introduction

RecyclerViewExtensions

This code is deprecated and will no longer be maintained. It was used as an example to explain how we could work with RecyclerView in Android L Preview, before final release appeared.

More information about RecyclerView can be found at:

RecyclerView in Android: The basics @ antonioleiva.com

recyclerviewextensions's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

recyclerviewextensions's Issues

onLayoutChildren() is convoluted

Hello,
I appreciate your sample code. However, the onLayoutChildren() method you made is very convoluted. It is 226 lines of spaghetti code! I am wondering if there is any way to simplify this method. I would be happy to contribute if you give me some guidance here. Sorry, I am just a beginner with RecyclerViews.

Item decorator

You can add or I can make a pull request for item decorator
there is one in the sample:
android-sdk\extras\android\support\samples\Support7Demos\src\com\example\android\supportv7\widget\decorator

Testing, clicking on items and removing them crashes app

I must have removed about 12 and it crashed

maybe it has to do with clicking fast - and clicking on an empty space before the animation moves a new item into the spot?

FATAL EXCEPTION: main
Process: com.antonioleiva.recycledviewextensions.app, PID: 9537
java.lang.ArrayIndexOutOfBoundsException: length=27; index=-1
at java.util.ArrayList.remove(ArrayList.java:405)
at com.antonioleiva.recycledviewextensions.example.MyRecyclerAdapter.remove(MyRecyclerAdapter.java:58)
at com.antonioleiva.recycledviewextensions.example.MainActivity$1.onItemClick(MainActivity.java:34)
at com.antonioleiva.recycledviewextensions.example.MainActivity$1.onItemClick(MainActivity.java:32)
at com.antonioleiva.recycledviewextensions.example.MyRecyclerAdapter.onClick(MyRecyclerAdapter.java:47)
at android.view.View.performClick(View.java:4598)

How to import the library&sample projects to Eclipse?

It seems to have a lot of compilation errors, saying that the classes you use cannot be found.
I've tried to set the minSdk&targetSdk to 20 or "L" , and none helped.

I've noticed you used things from the support library, but I can't see it knowing what are the classes you've used.

Maybe I'm missing something?

If there will be no data in one item

I am implementing an Android App in which recyclerview is used.

I am getting five JsonArrays from Api and setting the five views with respective headers of their but when all five JsonArrays are coming it is working awsome. But problem comes when there is not one or more JsonArray.

What I want is that if there will not be one JsonArray then the Header of that should be there but as data is not there for that so the item should not shown and Header should be visible.

Now what is happening is out of five JsonArrays I am getting only 4 so the one which is not coming automatically view is assigned to it and the data of one item from another Json array is shown that thing I don't want in my app.

Is this possible in recyclerview ? Please revert asap.

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.