Code Monkey home page Code Monkey logo

expandablerecyclerview's People

Contributors

grennis avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

expandablerecyclerview's Issues

Is it possible to expand a header by default?

When creating an ExpandableRecyclerAdapter.ListItem, is it possible to set a property so that it is expanded by default, instead of calling expandItems on each of them after finish with setItems()?

Thanks

Change the selected row state

Hi there,
Thanks for your prompt response.

I'm going to show users a selected state for children rows. but Library each time user open parent row, insert new row and change the position! then when user scroll the list, may have see multiple row is selected!!

I'm using SparseBooleanArray to map integer to Boolean for this goal. but when position had change this solution is worthless!

How you handle it?

Fatal Exception: java.lang.IndexOutOfBoundsException while toggling Expanded Items.

Hi there,

First, thank you very much for your great library, it saves me a lot of time and it is really tough and stable !

However, I'm encountering an issue in production on version 0.9.3. I can't reproduce it on my side but perhaps this stack trace could help you ? The index of 4 is just an example, it apparently happen in many situations.

Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 4, Size: 4 at java.util.ArrayList.get(ArrayList.java:437) at com.innodroid.expandablerecycler.ExpandableRecyclerAdapter.isExpanded(ExpandableRecyclerAdapter.java:160) at com.innodroid.expandablerecycler.ExpandableRecyclerAdapter.toggleExpandedItems(ExpandableRecyclerAdapter.java:91) at com.innodroid.expandablerecycler.ExpandableRecyclerAdapter$HeaderViewHolder.handleClick(ExpandableRecyclerAdapter.java:78) at com.innodroid.expandablerecycler.ExpandableRecyclerAdapter$HeaderViewHolder$1.onClick(ExpandableRecyclerAdapter.java:72) at android.view.View.performClick(View.java:6312) at android.view.View$PerformClick.run(View.java:24811) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:171) at android.app.ActivityThread.main(ActivityThread.java:6649) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)

There is no particular device affected by this issue, affecting all brands, on Android 5->8 during the last 30 days.

Do you have any idea on why or how this could happen?

Again, thank you for your great work, and in advance for your help :).

Invalid super type

When using the demo app code i get an error with the view holders

Invalid super type 'com.innodroid.expandablerecycler.ExpandableRecyclerAdapter.HeaderViewHolder'

issue when 1stparentview and 2second parentview

Hi,

I need to close the previously opened parentview in list items.

For eg:

  1. I opened first parent view
  2. when i click 2 parent view..i need to close 1 parent view.

This is my requirement ...how to achieve this?

Refresh ChildItems

Hello,

I have implemented the expandable Recycler view & its working fine. I am having a functionality that I need to refresh the child items with respect to parent item click. How to achieve it?

GridLayoutManager usage

Greetings!

I'm trying to use this lib with GridLayoutManager.
But when I've done this, the result was not as I expected.

device-2016-02-25-015937
device-2016-02-25-020010
device-2016-02-25-020050

When all tabs are expanded thats fine. In other cases it's looked wired.
I use this code in my Activity.

final GridLayoutManager manager = new GridLayoutManager(this, 2);
        recycler.setLayoutManager(manager);

        final PeopleAdapter adapter = new PeopleAdapter(this);
        recycler.setAdapter(adapter);

        manager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
            @Override
            public int getSpanSize(int position) {
                return adapter.isHeader(position) ? manager.getSpanCount() : 1;
            }
        });

notifyDataSetChanged() Does not work

Hi there
There is a issue with this adapter, I've to get categories and their subcategories from rest API.
As usual after parsing and making my List and assign that to Adapter, I use notifyDatasetChanged() method to notify Adapter.
Issue is there! Adapter does not recognize the change!

another odd action: notifyDatasetChanged() close the open parent but the arrow still remain in it's open state! ( When I populated the adapter with fake data like yours sample app ).

Is there any custom method for this?

Rotating arrow

I have use your class for creating an expandable list and its work nice. I changed that arrow rotate 180 degrees, instead of 90, but now when i scroll down and scroll back (list have about 20 items) arrow is not in rotating position.

dynamically view items

please help

how to add json data in to this library..... using asynchronous http client

Item docorator

How to add item decorator to header and child separatedly in expandable recyclerview

google map in child view

Can i add google map in child view of item. As in every group respective of item their will be map. Is that possible ?

I need catch the header view inside of the child

i want to put a button in the child of the header and when push the button appears in the header a image but i dont know how can to do for catch the view of the header for to do visible the image in the header.
Thanks

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.