Skip to content

Commit

Permalink
[Android] Listview handler via Compatibility.ViewRenderer (#3817)
Browse files Browse the repository at this point in the history
* ListView compatibility handler

* - fixes

* - fixup ListView pages

* - cleanup CV

* -clean up todos

* Update CustomFlyoutPage.xaml.cs

* Update XamlApp.xaml.cs

* - fix measuring for infinite height

* - add descriptions

* - consolidate

* - move listviewrenderer out of compatibility
  • Loading branch information
PureWeen committed Jan 17, 2022
1 parent 8acd1db commit 8d8be50
Show file tree
Hide file tree
Showing 66 changed files with 5,091 additions and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public override int Count
/// This renderer uses a view defined in /Resources/Layout/NativeAndroidCell.axml
/// as the cell layout
/// </summary>
public class NativeAndroidCellRenderer : ViewCellRenderer
public class NativeAndroidCellRenderer : Handlers.Compatibility.ViewCellRenderer
{
public NativeAndroidCellRenderer()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
using Microsoft.Maui.Controls.Compatibility.ControlGallery.Android;
using Microsoft.Maui.Controls.Compatibility.ControlGallery.Issues;
using Microsoft.Maui.Controls.Compatibility.Platform.Android;
using Microsoft.Maui.Controls.Handlers.Compatibility;
using Microsoft.Maui.Platform;
using AView = Android.Views.View;

[assembly: ExportRenderer(typeof(Bugzilla38989._38989CustomViewCell), typeof(_38989CustomViewCellRenderer))]

namespace Microsoft.Maui.Controls.Compatibility.ControlGallery.Android
{
public class _38989CustomViewCellRenderer : Microsoft.Maui.Controls.Compatibility.Platform.Android.ViewCellRenderer
public class _38989CustomViewCellRenderer : Handlers.Compatibility.ViewCellRenderer
{
protected override AView GetCellCore(Cell item, AView convertView, ViewGroup parent, Context context)
{
Expand Down

0 comments on commit 8d8be50

Please sign in to comment.