question-mark
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.

[Android] Add possibility to work with CardsView with "Disabled animations" setting

See original GitHub issue

I’m on version 1.6.1 and I’ve initialized it using 3 pages like this:

<cards:CarouselView IsCyclical="false" SelectedIndex="{Binding CurrentIndex}">
        <cards:CarouselView.ItemsSource>
            <x:Array Type="{x:Type View}">
                <ContentView>
.. page goes here..
                </ContentView>
                <ContentView>
.. page goes here..
                </ContentView>
                <ContentView>
.. page goes here..
                </ContentView>
            </x:Array>
        </cards:CarouselView.ItemsSource>
        <controls:IndicatorsControl />
</cards:CarouselView>

And the appearance on a Samsung device is totally messed up once you begin swiping.

Any ideas what the issue might be? It runs perfectly on iOS devices and on a Blackview A20 phone.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:26 (26 by maintainers)

github_iconTop GitHub Comments

1reaction
AndreiMisiukevichcommented, Aug 28, 2018

@karlingen hey) try please 1.6.2-pre version of this package

1reaction
karlingencommented, Aug 24, 2018

This piece of code works for checking if animations are disabled on Android:

using Android.Provider;
...
public bool AnimationsAreDisabled() 
{
    return Settings.Global.GetFloat(Application.ContentResolver, Settings.Global.AnimatorDurationScale, 1) <= 0;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

CardView within RecyclerView: animation while populating
The animation is currently working, however the thing is the items are being animated all at once. I tried iterating through the items...
Read more >
[Android] Device animations disabled issue #3694
Hi there If user disabled animations on his device, Animation.Commit would do nothing. So, committing animation doesn't affect view's at all ...
Read more >
Reveal or hide a view using animation
There are three common animations to use when showing or hiding a view. You can use the circular reveal animation, a crossfade animation,...
Read more >
Create Shadows and Clip Views
To clip a view to the shape of a drawable, set the drawable as the background of the view (as shown above) and...
Read more >
Build a responsive UI with ConstraintLayout
ConstraintLayout lets you create large, complex layouts with a flat view hierarchy—no nested view groups. It's similar to RelativeLayout in that all views ......
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found