Android GridView
GridView:
GridView is a view group that is responsible for showing objects in a two-dimensional, scrollable table.
It is information represented in rows and columns and is a popular and effective way to deliver information since each cell of the grid is clickable and interactive.
Example:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".GridViewExample"
android:orientation="vertical">
<GridView
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="2"/>
</LinearLayout>
Output