Skip to content

Instantly share code, notes, and snippets.

@daniellevass
Created April 9, 2018 15:18
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 daniellevass/aa6d4042b950aaf6c0f2345530e4baa4 to your computer and use it in GitHub Desktop.
Save daniellevass/aa6d4042b950aaf6c0f2345530e4baa4 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"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imgCookie"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_marginTop="50dp"
android:layout_centerHorizontal="true" />
<TextView
android:id="@+id/lblName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Name"
android:layout_below="@id/imgCookie"
android:gravity="center"
android:layout_margin="20dp"/>
<TextView
android:id="@+id/lblStory"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Story"
android:layout_below="@id/lblName"
android:gravity="center"
android:layout_marginBottom="20dp"/>
<Button
android:id="@+id/btnLike"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:text="Like"
android:background="#A0D468"
android:layout_below="@id/lblStory"
android:layout_alignParentLeft="true"
android:layout_marginLeft="50dp"
/>
<Button
android:id="@+id/btnDislike"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:text="Dislike"
android:background="#D8334A"
android:layout_below="@id/lblStory"
android:layout_alignParentRight="true"
android:layout_marginRight="50dp"
/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment