Xwray.Groupie
2.1.0
dotnet add package Xwray.Groupie --version 2.1.0
NuGet\Install-Package Xwray.Groupie -Version 2.1.0
<PackageReference Include="Xwray.Groupie" Version="2.1.0" />
paket add Xwray.Groupie --version 2.1.0
#r "nuget: Xwray.Groupie, 2.1.0"
// 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 | Versions 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. |
-
- Xamarin.Android.Support.v7.RecyclerView (>= 27.0.2.1)
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 |