Xwray.Groupie 2.1.0

dotnet add package Xwray.Groupie --version 2.1.0                
NuGet\Install-Package Xwray.Groupie -Version 2.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xwray.Groupie" Version="2.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xwray.Groupie --version 2.1.0                
#r "nuget: Xwray.Groupie, 2.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xwray.Groupie as a Cake Addin
#addin nuget:?package=Xwray.Groupie&version=2.1.0

// Install Xwray.Groupie as a Cake Tool
#tool nuget:?package=Xwray.Groupie&version=2.1.0                

GroupieXamarin

Xamarin bindings library for the groupie library.

Groupie is a simple, flexible library for complex RecyclerView layouts.

Currently this library 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. So, I can not binding latest library yet because package name does not match. (If you know how to bind, please let me know.)

Usage

class ListItem : Item
{
    private readonly string _title;

    public ListItem(string title)
    {
        _title = title;
    }

    public override void Bind(Object holder, int position)
    {
        var viewHolder = (ViewHolder) holder;
        var title = viewHolder.Root.FindViewById<TextView>(Resource.Id.title);
        title.Text = _title;
    }

    public override int Layout => Resource.Layout.list_item;
}
var adapter = new GroupAdapter();
adapter.Add(new ListItem("1"));

var recyclerView = FindViewById<RecyclerView>(Resource.Id.recycler_view);
recyclerView.SetLayoutManager(new LinearLayoutManager(this));
recyclerView.SetAdapter(adapter);

If you want more examples, you can refer Sample and groupie's example.

Product Compatible and additional computed target framework versions.
.NET net6.0-android was computed.  net7.0-android was computed.  net8.0-android was computed. 
MonoAndroid monoandroid is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 630 5/6/2019