There is a twoway-view library that allows you to create a custom recycler view as I need
https://github.com/lucasr/twoway-view
Just do not understand how to import it correctly
According to the description you need to do like this
compile 'org.lucasr.twowayview:twowayview:0.1.4' But immediately there are problems when you make this custom recycler view in the markup
<org.lucasr.twowayview.widget.TwoWayView android:id="@+id/rvMain" android:layout_width="match_parent" android:layout_height="match_parent" app:twowayview_layoutManager="StaggeredGridLayoutManager" app:twowayview_numColumns="2" app:twowayview_numRows="2" /> The namespace is defined, but there are no property names, so I had to manually find all attrs.xml in the repository of this library and add them to myself (as for me it’s not very convenient for a lib with 4500 stars rating)
Well, ok, then I started working with the adapter and created my own based on the example, but my project does not see imports
import com.fittingroom.newtimezone.view.activityMainNew.recyclerViewUtil.twowayview.TwoWayLayoutManager; import org.lucasr.twowayview.TwoWayLayoutManager; import org.lucasr.twowayview.widget.SpannableGridLayoutManager; import org.lucasr.twowayview.widget.StaggeredGridLayoutManager; import org.lucasr.twowayview.widget.TwoWayView; I don’t know what a snapshot is (it’s written in Google that it’s a snapshot of the project’s status), but I don’t understand what it means in the description of this lib, but I tried to import it into my project
repositories { maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { compile 'org.lucasr.twowayview:core:1.0.0-SNAPSHOT@aar' compile 'org.lucasr.twowayview:layouts:1.0.0-SNAPSHOT@aar' } and then the project showed me that I try to import this lib more than once
In general, I do not understand how this should work? Who worked with this lib tell me the secret?
Or can you recommend another approach? I generally need to do this recycler view
I already did CardView, I need to figure out now how to make such a template as in the picture for my recycler view

compile 'org.lucasr.twowayview:twowayview:0.1.4'- Yuriy SPb ♦0.1.3- it is the latest in releases - YuriySPb ♦