Carousel Example

Nathan Sokalski 4,111 Reputation points
2022-12-20T21:11:33.633+00:00

I am looking to learn how to use the Carousel (https://developer.android.com/reference/androidx/constraintlayout/helper/widget/Carousel). I have used RecyclerView, but I have never used any of the constraint* or motion* classes. Carousel.Adapter looked pretty similar to RecyclerView.Adapter, so I think I understand what to do for that, but all the other stuff I am not sure what to do with. Are there any good examples (preferably in Xamarin.Android & C#) for Carousel & the related classes? Thanks.

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-12-21T09:50:14.827+00:00

    Hello,

    I cannot find examples, but you can use Androidx.Constraintlayout.Helper.Widget.Carousel and Androidx.Constraintlayout.Motion.Widget.MotionLayout directly in Xamarin.Android.

    Here is an android document about Carousel with MotionLayout , you can refer to it.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.