Skip to content

Instantly share code, notes, and snippets.

@Hardik8184
Created December 27, 2019 07:23
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 Hardik8184/a57607cd42758ef434f5fe5976d7a59c to your computer and use it in GitHub Desktop.
Save Hardik8184/a57607cd42758ef434f5fe5976d7a59c to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/activity_padding">
<View
android:id="@+id/thumbnail"
android:layout_width="@dimen/placeholder_image"
android:layout_height="@dimen/placeholder_image"
android:layout_marginEnd="@dimen/activity_padding"
android:layout_marginRight="@dimen/activity_padding"
android:background="@color/placeholder_bg" />
<View
android:id="@+id/name"
android:layout_width="150dp"
android:layout_height="10dp"
android:layout_marginBottom="10dp"
android:layout_toEndOf="@id/thumbnail"
android:layout_toRightOf="@id/thumbnail"
android:background="@color/placeholder_bg" />
<View
android:layout_width="100dp"
android:layout_height="@dimen/placeholder_text_height"
android:layout_below="@id/name"
android:layout_toEndOf="@id/thumbnail"
android:layout_toRightOf="@id/thumbnail"
android:background="@color/placeholder_bg" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/thumbnail"
android:layout_marginTop="20dp"
android:layout_marginBottom="40dp"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="@dimen/placeholder_text_height"
android:layout_marginEnd="100dp"
android:layout_marginRight="100dp"
android:background="@color/placeholder_bg" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/placeholder_text_height"
android:layout_marginTop="10dp"
android:layout_marginEnd="50dp"
android:layout_marginRight="50dp"
android:background="@color/placeholder_bg" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/placeholder_text_height"
android:layout_marginTop="10dp"
android:layout_marginEnd="160dp"
android:layout_marginRight="160dp"
android:background="@color/placeholder_bg" />
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment