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
.
Asked
Active
Viewed 251 times
0

N J
- 27,217
- 13
- 76
- 96

Atpl Mohali
- 138
- 1
- 10
-
I think it's not easy to do above layout with `RecyclerView` – N J Jun 27 '17 at 06:27
-
and what about gridview – Atpl Mohali Jun 27 '17 at 06:39
-
Even `GridView` will not help you in this case, You need custom view or library for this – N J Jun 27 '17 at 06:43
-
can you suggest me any library? – Atpl Mohali Jun 27 '17 at 06:45
-
try using lookup span do some tweeks , take reference from https://stackoverflow.com/questions/11736658/android-heterogeneous-gridview-like-pinterest – N J Jun 27 '17 at 06:49
-
Thanks for the suggestion. – Atpl Mohali Jun 27 '17 at 06:52
-
welcome also have look on answer's library, if `RecyclerView` not help you then you will get idea how to design the custom view – N J Jun 27 '17 at 06:57