Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make childs bigger

See original GitHub issue

Hi, thanks for perfect library. I hava a problem about childs. Here is my implementation :

layoutManager.setPostLayoutListener(new CarouselZoomPostLayoutListener()); layoutManager.setMaxVisibleItems(4);

        // we expect only fixed sized item for now
        // sample adapter with random data
        // enable center post scrolling
        recyclerView.addOnScrollListener(new CenterScrollListener());

here what i want to do : ios photo

here what i do : android

how can i make bigger these childs? thank you

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

ajramos27commented, Feb 2, 2017

scale = (float) (2 * (2 * -StrictMath.atan(Math.abs(itemPositionToCenterDiff/3) + 1.0) / Math.PI + 1)); It worked for me 😃

Kistycommented, Jan 19, 2017

I think you may need to make a new PostLayoutListener. Try copying the CarouselZoomPostLayoutListener and replace atan with sin instead and experiment.

The atan function is used only as a methoematical equation to make centre things large with slower changes and things on the side to small with faster changes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Growth and Your 6- to 12-Year-Old (for Parents) - Kids Health
Kids tend to get taller at a pretty steady pace, growing about 2.5 inches (6 to 7 centimeters) each year. When it comes...
Read more >
How to Make A Small Kid's Room Appear Bigger
Another technique very commonly applied to make a kid's room appear larger is to draw the attention upwards - towards the ceiling. This...
Read more >
What can I do if my child is overweight? - NHS
be a good role model · encourage 60 minutes, and up to several hours, of physical activity each day · keep to child-size...
Read more >
Swapping Bodies with a Child Makes Everything Seem Bigger
Adults can regain that feeling of living in an oversize world just by putting on a virtual-reality headset. (Large kid who used to...
Read more >
how to make child widget looks like its bigger then its parent ...
The blue circle widget size is bigger than its parent widget. But I don't know how to make it without any plugins. Please...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found