Android Studio Tutorial - Grid Layout and CardView

EDMT Dev · 600K views · 2017 · 14:21

Open on YouTube

Software (other)UX & UI designtutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering or asking about GridLayout and CardView problems in Android apps, using it as a worked example to follow.

Recommended by 2 people across 2 different months, 2018 to 2021.

What it is

A 14-minute Android Studio tutorial from the EDMT Dev channel showing how to build a grid of clickable CardViews using GridLayout. It walks through the layout setup step by step, and the source code is available on GitHub.

What people said

Recommends Tokisaki Toru · 2018-04 · Stack Overflow · on “GridLayout not working”

you need to use this android.support.v7.widget.GridLayout instead of the default GridLayout . Check the answer in the comments under the tutorial video here: Android Studio Tutorial - Grid Layout and CardView [this video]

Recommends Windgate · 2021-06 · Stack Overflow · on “How to align Gridview center”

The way you can destroy all alignment in a GridLayout just by moving your gravity/layout_gravity properties between layouts/elements is really awful, this video helped me a lot [this video]

Cites BlueYeti81 · 2018-02 · Stack Overflow · on “Cardview doesn't appear like in layout when i run it in my device”

I viewed the tutorial from youtube [this video] and did the whole thing...I have no idea to build a whole layout over again....any idea how can I do this or could you please post the redesigned layout from the refrence above as it'd be helpful for future refrence also for Others.

Cites Sarquamon · 2019-01 · Stack Overflow · on “Cardview won't change my current activity (Intent won't work)”

I'm creating a language app as homework for school in android. Right now I'm setting up some clickable CardViews (which are in "LevelsHub") to take the user to another view (called "ProfileActivity") but for some reason INTENT is not working the way it should, it takes me back to the same view ("LevelsHub"),even though I've used it in some other parts of the app. What could be happening here? I've followed this amazing dude tutorials on it. [this video] and this one too [LINK] Tried clicking on the cards itself, didn't work I've already tried adding buttons to the card and using Intent on it too, didn't work. Cycling throughout all cards to see if any of them would take me somewhere Using this gu