I am trying to create a Pinterest like layout in XF. Here is the lib what I used:
https://github.com/etsy/AndroidStaggeredGrid
I generated .aar file by Android Studio and create Android binding project, however when I tried to build project, I got the error below:
Couldn't open java archive : java.util.zip.ZipException: error in opening zip file
I have change Build Action to LibraryProjectZip, can anybody tell me where's the problem?
Also when I tried to create a custom ListAdapter, and bind it to ListView, the ListView just shows nothing.
' public override View GetView(int position, View convertView, ViewGroup parent)
{
if (convertView == null)
{
var content = (ViewCell)_listView.ItemTemplate.CreateContent();
content.BindingContext = this._listView.ItemsSource.Cast().ToList()[position];
var view = RendererFactory.GetRenderer(content.View);
view.ViewGroup.LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FillParent, ViewGroup.LayoutParams.WrapContent);
view.ViewGroup.SetMinimumWidth(400);
view.ViewGroup.SetMinimumHeight(400);
return view.ViewGroup;
}
return convertView;
} '
If I just return a simple textview, everything works fine. Did I miss anything to make my CustomView display?
Many thanks