mahdi yamani
mahdi yamani

Reputation: 933

android - How to make gridView like this

I was wondering how can I make a gridView like this .As you can see in this image ,it's a very beautiful gridView but I don't know how can I make one .

enter image description here

is this a gridView or something else ?

Upvotes: 0

Views: 555

Answers (3)

VjLxmi
VjLxmi

Reputation: 440

In the custom Adapter implement the following functions to create separate views

    @Override
    public int getViewTypeCount() {
       return 3;
    }

    @Override
    public int getItemViewType(int position) {
        return position % 3;
    }

Upvotes: 0

Kartik
Kartik

Reputation: 7917

For varying columns and rows in a GridView, you can use this library:- https://github.com/felipecsl/AsymmetricGridView

For writing text over images, use custom adapter with layout inflater.

Upvotes: 1

Related Questions