Coder Social home page Coder Social logo

smallexamples's People

Contributors

andreas- avatar udic avatar udinic 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  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

smallexamples's Issues

Can't collapse, when children are a listview

Hey,

i've run into a problem by developing a list with expandable children. Each parent has a different amount of children, so that I use a ListView in the "toolbar"-layout and fill it dynamically with data in an adapter.
Now when I expand a group everything works fine, but when I try to collapse, it seems as if the parent item looses his clicklistener, because no click is detected. The child list view doesn't have an itemclicklistener yet, so it couldn't be intercepted by it...
Do you have an idea?
array_adapter
listrow-xml

Expand state gone after you perform scrolling

Step to reproduce

  1. Tap on the 1st item to expand.
  2. Scroll to the bottom
  3. Scroll to the top
  4. The 1st item expand state is gone.
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        if (convertView == null) {
            convertView = getLayoutInflater().inflate(R.layout.list_item, null);
        }

        ((TextView)convertView.findViewById(R.id.title)).setText(getItem(position));

        // Resets the toolbar to be closed
        View toolbar = convertView.findViewById(R.id.toolbar);
        ((LinearLayout.LayoutParams) toolbar.getLayoutParams()).bottomMargin = -50;
        toolbar.setVisibility(View.GONE);

        return convertView;
    }

I guess this is cause by View re-using. However, if we remove the code

        toolbar.setVisibility(View.GONE);

We will encounter another set of problem

  1. Tap on the 1st item to expand.
  2. Scroll to the bottom
  3. We will encounter some items other than 1st is expanded.

ExpandAnimation not smooth the first execution

Hello Udinic,

Thanks a lot for your OpenSource contributions :-). I have been dealing with the ExpandAnimation, and it seems that the animation is not smooth the first execution (but completely fine on the subsequent ones). Is this a known issue?

Expand Animation: items appear expanded on scroll

If your list is long enough, and you expand one item (the first item, for instance), and then you scroll it down, at some point another item will appear expanded too.

Note that I am not forcing the items to be either expanded or collapsed, because I want to preserve their states when I scroll.

Since the viewholder can be reused, it needs to know whether the cell should be expanded or collapsed.

Does anyone know how to solve this?

Expand Animation: Mess after Double Click on a Item

When you double tap a Item (for example, you pressed Item 1 but wanted to hit 2, so you click it immediately again to close) it destroys something.

After a double click, when you hit the item again it opens but closes immediately and won't open properly again.

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.