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
Related
I need to make this UI in android and I know that I can do it with the help of GridView but what I cannot understand is that how to set the margin for the TextView.
Can anyone help me with this?
Or any other suggestion except GridView. I was even thinking of RecyclerView.
Maybe this library could be interesting for you.
I am working with a gridview and I want to style it according to the following pattern in the image.The gridview must be populated dynamically. Is there a way to achieve this in android?
You can use Recycler View for this. Please refer https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.html
and StaggeredGridLayoutManager
https://developer.android.com/reference/android/support/v7/widget/StaggeredGridLayoutManager.html
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
I am new to android, I have arranged five LinearLayouts in a horizontal way, if I click the first first LinearLayout it will expand and the other layouts remain in the same position, please help me.
This is the layout design :
As the way you stated, I suggest you to use ExpandableListView
You can see for tutorial HERE
Since you're new, you're gonna have to learn anyway. Since the functionality you're looking for can be easily implemented using a Horizontal ListView, I suggest you try this approach rather than using five LinearLayouts. ListViews have extensive controls. I recommend this implementation from experience : HorizontalVariableListView. Hope this helps!
How can I add Grid View to the ListView.I could able to Implement but the problem is Grid View is not Visible its full height. I want to implement just like the Dropbox Photo CustomView which I have attached below. Please guide me in correct Path.
Thanks,
Chaitanya
Using github.com/TonicArtos/StickyGridHeaders library for placing headers in gridview and refer this article http://www.programering.com/a/MjN0ITMwATU.html where is the demo as what are u expecting.
The thing is that you are not supposed to add a scrollable view into another scrollable view. Both ListView and GridView are scrollable, so that just leads to trouble. I suspect that the Dropbox app does not use a GridView, but multiple LinearLayouts, that's at least what I would do. You just can not use an adapter in that case, but need to add the layouts and elements programmatically.