Implement a Custom Staggeregrid in UIview Like Etsy App in Swift

Is there a way to make layout like Android StaggeredGridView using react-native in iOS

This is definitely possible.
Have a look at https://github.com/xudafeng/autoresponsive_react_native_sample

pinterest like layout

How to implement Staggered GridView with Sections?

I have implemented this by using RecyclerView with StaggeredGridLayoutManger in SimpleAdapter.java.

      if (position % 5 == 0) {
StaggeredGridLayoutManager.LayoutParams layoutParams = (StaggeredGridLayoutManager.LayoutParams) holder.itemView.getLayoutParams();
layoutParams.setFullSpan(true);
} else {
StaggeredGridLayoutManager.LayoutParams layoutParams = (StaggeredGridLayoutManager.LayoutParams) holder.itemView.getLayoutParams();
layoutParams.setFullSpan(false);
}

Here is the link I have created a demo for this StaggeredGridViewSections

Is it possible for Etsy's StaggeredGridview to work in API 9?

Change value of minSdkVersion into manifest of library project to 9

<uses-sdk android:minSdkVersion="10"/>

with

<uses-sdk android:minSdkVersion="9"/>

Use Staggered Grid in xamarin

Did you try using Google (https://www.google.com/search?q=xamarin+AndroidStaggeredGrid&oq=xamarin+AndroidStaggeredGrid)? LOL! Just kidding!

I had the same problem and I think you (we) have several options (please read all the solutions first before making a decision)

  1. First solution is to try "Binding a Java Library", I mean consuming .JARs from C#. Xamarin has a really good documentation for this (http://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/)
  2. Second could be porting the JAVA code to C#. Xamarin also has good doc for this (http://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/porting_java_to_csharp/). I did this several times for iOS to c# (I wrote several articules in my blog http://www.hernanzaldivar.com). You have TOOLS TO HELP YOU CONVERT JAVA TO C# SOURCE CODE (http://codecall.net/2014/03/27/best-tools-to-convert-java-to-c-source-code/). Here you also have a good read for this (http://blog.xamarin.com/android-in-c-sharp/)
  3. Finally, you have this native solution that I'm going to follow. The solution is in this tweet (https://twitter.com/kphillpotts/status/576130296338321408). Here you have a detail article "Xamarin Android - A Staggered Grid Layout, via a RecyclerView. And no Java bindings!" (http://blog.wislon.io/posts/2015/03/05/xamarin-android-staggered-grid-layout/) with all the source code

I hope you find this useful
Greetings from Argentina
HERNAN

https://twitter.com/vackup
http://www.hernanzaldivar.com/

Create grid view like pinterest app

This is a modified version of Android's experimental StaggeredGridView. The StaggeredGridView allows the user to create a GridView with uneven rows similar to how Pinterest looks. Includes own OnItemClickListener and OnItemLongClickListener, selector, and fixed position restore.

Refer this,It may help to solve your problem.



Related Topics



Leave a reply



Submit