Skip to content

Instantly share code, notes, and snippets.

@ShubhamMahajan
Last active January 7, 2016 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShubhamMahajan/4de67a36f7fd9da4f0e4 to your computer and use it in GitHub Desktop.
Save ShubhamMahajan/4de67a36f7fd9da4f0e4 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"
android:layout_width="match_parent"
android:layout_gravity="center"
android:background="@color/colorPrimary"
android:orientation="vertical"
android:padding="16dp"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_gravity="center"
android:layout_margin="8dp"
android:src="@drawable/aaa" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="70dp"
android:layout_margin="5dp"
android:weightSum="2">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_weight="1">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="5"
android:layout_gravity="center"
android:textSize="15sp"
android:gravity="center"
android:textColor="@color/white"
android:textStyle="bold"
android:padding="5dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="My Post"
android:layout_gravity="center"
android:textSize="13sp"
android:textColor="@color/white"
android:gravity="center"
android:padding="5dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_weight="1">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="50"
android:gravity="center"
android:layout_gravity="center"
android:textSize="15sp"
android:textColor="@color/white"
android:textStyle="bold"
android:padding="5dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Total Posts"
android:gravity="center"
android:layout_gravity="center"
android:textSize="13sp"
android:textColor="@color/white"
android:padding="5dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Shubham Mahajan"
android:layout_gravity="center"
android:textSize="16sp"
android:textColor="@color/white"
android:textStyle="bold"
android:padding="8dp"
android:layout_margin="5dp"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="19 yrs"
android:layout_gravity="center"
android:textSize="15sp"
android:textColor="@color/white"
android:textStyle="bold"
android:padding="8dp" />
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment