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
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)
- 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)/)
- 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/)
- 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
Wrong Value Returned After Formatting Timestamp
Avoid Equatable and Hashable Boilerplate, Swift 4.2
How to Set Window Level in Swift
Swift: How to Continuously Send an Action from a Nstextfield
Use Tableviewcontroller Inside Skscene
Why Is a Firestore Listener Returning .Added Twice When a Single Document Is Added
Uiscrollview Controller Not Scrolling Fully
Choppy Animation Swiftui Nested Views
How to Instantiate a View Controller Programatically, Without Storyboard
How to Insert UIlabel After UItextfield in UIalertcontroller
Arkit: Place Object on a Plane Doesn't Work Properly
How to Run Terminal Command in Swift from Any Directory
Could Not Find an Overload for '-' That Accepts The Supplied Arguments
Swift Dictionary Initialization of Custom Type Gives: '>' Is Not a Postfix Unary Operator Error
Retrieve Data from an Unknown Child Name with Firebase and Swift