Vertical Grid view in android - android

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.

Related

Whats the best idea for set a listview in a scrollview?

I have a problem with listView inside a scrollView , I know that it cant work correctly by default, but i have to do this. and the question is that how can I do this? any idea?!
i use this way :
here
but it doesn't work for me!
thanks!

Custom GridLayout

I'm trying to make some auto fill grid, but without know the width from every item. So, the width from child can be deferent in every row and every column. It only depends from a TextView.
I want something like this.
I'm tried with GridLayout and android:numColumns="auto_fit" but isn't what I'm looking for.
I also check this post but is basically same as GridLayout.
Anyone know some other solutions??
Flexbox-Layout is a project by Google to provide both a simple view and a RecyclerView layout manager that does what you want. https://github.com/google/flexbox-layout
I think the following tutorial might be a solution for the current problem u r facing
Tutorial
Hope it helps ;)

Horizontal scroll with gridview

Now i have to create a horizontal listview again, this time i want to find a better library for this, as far as i know android did not have a horizontal listview, and then i read this
http://developer.android.com/design/building-blocks/grid-lists.html
They mention if gridview can scroll horizontally, they even illustrated it with a picture. I try to find example of how to use gridview horizontally, but i have no luck,
is anyone here can help me how to use gridview scroll horizontally?
This is the best library for two way grid. I have used it and it works perfectly.
https://github.com/jess-anders/two-way-gridview
I'm end up using recyclerview as #tyczj recommend

Horizontal swipe between two separated layouts

I need to swipe between my two almost identic but separated layouts. Like just swipe screen by fingertip and the picture will change and some text will change too... thats all. :) But, isn't there a problem, when I'm using RelativeLayout at both of them?
Spartacus Hello
Bro use pager view for horizontal swipe, here is a simple exapmle of pager view:-
Check it out:-
If you found any issue regarding this please let me know i love to help you,
Spartacus Thanks:- :)

Flipboard android layout choice

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

Categories

Resources