Skip to content

Instantly share code, notes, and snippets.

@itssomething
Created May 28, 2020 04:16
Show Gist options
  • Save itssomething/8fa01d9db336a1130add9be3676691f3 to your computer and use it in GitHub Desktop.
Save itssomething/8fa01d9db336a1130add9be3676691f3 to your computer and use it in GitHub Desktop.
<?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"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:padding="10dp"
android:orientation="vertical"
tools:context=".MainActivity">
<GridLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:columnCount="2"
android:rowCount="5">
<androidx.cardview.widget.CardView
android:margin="10dp"
android:layout_rowSpan="1"
android:layout_columnSpan="1"
android:layout_weight="1">
<RelativeLayout
android:id="@+id/rl_like_first_following"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tx_like_first_following"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/img_like_first_following"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="123" />
<net.steamcrafted.materialiconlib.MaterialIconView
android:id="@+id/img_like_first_following"
android:layout_width="200dp"
android:layout_height="150dp"
app:materialIcon="thumb_up" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_margin="10dp"
android:layout_rowSpan="1"
android:layout_columnSpan="1"
android:layout_weight="1">
<RelativeLayout
android:id="@+id/rl_like_first_following2"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tx_like_first_following2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/img_like_first_following2"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="123" />
<net.steamcrafted.materialiconlib.MaterialIconView
android:id="@+id/img_like_first_following2"
android:layout_width="200dp"
android:layout_height="150dp"
android:layout_centerHorizontal="true"
app:materialIcon="thumb_up" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_margin="10dp"
android:layout_rowSpan="1"
android:layout_columnSpan="1"
android:layout_weight="1">
<RelativeLayout
android:id="@+id/rl_like_first_following3"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tx_like_first_following3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/img_like_first_following3"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="123" />
<net.steamcrafted.materialiconlib.MaterialIconView
android:layout_width="200dp"
android:layout_height="150dp"
android:id="@+id/img_like_first_following3"
android:layout_centerHorizontal="true"
app:materialIcon="thumb_up" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_margin="10dp"
android:layout_rowSpan="1"
android:layout_columnSpan="1"
android:layout_weight="1">
<RelativeLayout
android:id="@+id/rl_like_first_following4"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tx_like_first_following4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/img_like_first_following4"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="123" />
<net.steamcrafted.materialiconlib.MaterialIconView
android:id="@+id/img_like_first_following4"
android:layout_width="200dp"
android:layout_height="150dp"
android:layout_centerHorizontal="true"
app:materialIcon="thumb_up" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_margin="10dp"
android:layout_rowSpan="1"
android:layout_columnSpan="1"
android:layout_weight="1">
<RelativeLayout
android:id="@+id/rl_like_first_following5"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tx_like_first_following5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/img_like_first_following5"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="123" />
<net.steamcrafted.materialiconlib.MaterialIconView
android:id="@+id/img_like_first_following5"
android:layout_width="200dp"
android:layout_height="150dp"
android:layout_centerHorizontal="true"
app:materialIcon="thumb_up" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_margin="10dp"
android:layout_rowSpan="1"
android:layout_columnSpan="1"
android:layout_weight="1">
<RelativeLayout
android:id="@+id/rl_like_first_following6"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tx_like_first_following6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/img_like_first_following6"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="123" />
<net.steamcrafted.materialiconlib.MaterialIconView
android:id="@+id/img_like_first_following6"
android:layout_width="200dp"
android:layout_height="150dp"
android:layout_centerHorizontal="true"
app:materialIcon="thumb_up" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_margin="10dp"
android:layout_rowSpan="1"
android:layout_columnSpan="1"
>
<RelativeLayout
android:id="@+id/rl_like_first_following7"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tx_like_first_following7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/img_like_first_following7"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="123" />
<net.steamcrafted.materialiconlib.MaterialIconView
android:id="@+id/img_like_first_following7"
android:layout_width="75dp"
android:layout_height="75dp"
android:layout_centerHorizontal="true"
app:materialIcon="thumb_up" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
</GridLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment