What is that in below image? I mean how can we achieve such views in android ? Is it RecyclerView ? or is that different views managed the way that looks ?
you should use StaggeredGridLayoutManager Official docs and here is a nice tutorial
Related
I have a problem with the design of the picture. I have tried many ways to do this. I used GridView to make a similar thing. But in GridView rows columns are equal. Please help me to do this. Suggest me some XML to design a layout like this image.
You can use staggered grid. Use RecyclerView with StaggeredGridLayoutManager.
Check this example:
https://inducesmile.com/android/android-staggeredgridlayoutmanager-example-tutorial/
You can Use RecyclerView to make this kind of layout.
https://developer.android.com/training/material/lists-cards.html
By using staggeredgridview You can acheive this layout
In an android activity, I would like to have a view that can display different elements, sliding the screen like a carousel.
My question is what is the appropriate view for this work.
Horizontal ScrollView(http://developer.android.com/intl/es/reference/android/widget/HorizontalScrollView.html) is probably the simplest to implement, but I would suggest you to use a ViewPager (http://developer.android.com/intl/es/reference/android/support/v4/view/ViewPager.html)
Try ViewPager. This is the documentation http://developer.android.com/training/animation/screen-slide.html
Is there any lib that can help me to achieve what CollagePlus jQuery library does?
I have a list of pictures (link and dimensions). Dimensions could be different and i need to arrange all images inside one view like in attached screen.
Update. I have a listView (RecyclerView), each item could have such gridView - so layout_height has to be wrap_content.
I've tried StaggeredGrid - that's not exactly what i want.
Also tried AsymmetricGridView - very buggy.
the support library there's the new RecyclerView that can achieve exactly that, you just have to use the GridLayoutManager and supply a SpanSizeLookup
here are the links for the docs
https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html
https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html
https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.SpanSizeLookup.html
This should help you achieve what you want. It's etsy's staggered grid view. Well supported.
https://github.com/etsy/AndroidStaggeredGrid
Is there a way to implement List View in Android, with a horizontal scroll? I've come across this library: https://github.com/MeetMe/Android-HorizontalListView . I'm wondering if there's a native way of doing it. I want to implement something similar to Amazon's android app's horizontal Scroll view on Home screen. Any suggestions?
I think that you are looking for this , let me know if it helps.
Yes, now in new versions of Android(Lollipop) you can implement horizontal listviews using new RecyclerView library.
This can help you.
I was wondering if anybody had any idea about how to mimic this Flipboard ui in android. I'm thinking that they might be using fragments, using gridview and list view, but the implementation of the gridview makes me wonder. Gridview with rows with three columns and a row with one column confuses me. Any suggestions would be appreciated.
View the Flipboard UI: http://i.stack.imgur.com/hNvxt.jpg
Maybe this library is what you are looking for https://github.com/openaphid/android-flip
What you need is StaggeredGridView.
Maybe this link helps you.
This approach can help to implement such layouts.
Create a gridview or create grid columns
Add this view as Header view for Listview