I created Xamarin bindings library for the groupie library. So, I introduce it in this article.

Groupie library is here.

Groupie is awesome library to handle complex RecyclerView layouts easily. I often use this library when creating RecyclerView layouts with android apps using Java/Kotlin.

Currently, GroupieXamarin is supports only groupie 2.1.0 because groupie 2.2.0 or later has been migrated to AndroidX but task to migrate Xamarin.Android bindings to AndroidX seems to be in progress. (I am watching the AndroidSupportComponents AndroidX branch.)

I tried with the groupie’s latest library, but not going well because package name is different between groupie and Xamarin.Android.Support.v7.RecyclerView. If you know how to bind, please let me know :)

Installation

You can install using nuget.

Usage

You can use in the same way as original groupie.

For example, define item…

and add to GroupAdapter.

Only this.

You can find other examples from the following.

Written by

Android applications engineer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store