Skip to content

Instantly share code, notes, and snippets.

@mohamedebrahim96
Created May 15, 2018 09:24
Show Gist options
  • Save mohamedebrahim96/04057c580c92513e0dde5a3eda828853 to your computer and use it in GitHub Desktop.
Save mohamedebrahim96/04057c580c92513e0dde5a3eda828853 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="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@color/black"
android:layout_gravity="center"
>
<RelativeLayout
android:layout_width="250dp"
android:background="@color/colorPrimary"
android:layout_height="150dp">
<ImageView
android:layout_width="300dp"
android:layout_height="150dp"
android:src="@drawable/cover"
android:scaleType="centerCrop"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_margin="12dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@color/white"/>
</RelativeLayout>
</RelativeLayout>
@mohamedebrahim96
Copy link
Author

You can create like this layout ....

screenshot_2018-05-15-11-20-33-058

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment