Skip to content

Instantly share code, notes, and snippets.

@RamiJ3mli
Created August 26, 2018 16:39
Show Gist options
  • Save RamiJ3mli/89590384d692d7a66644a63091a92218 to your computer and use it in GitHub Desktop.
Save RamiJ3mli/89590384d692d7a66644a63091a92218 to your computer and use it in GitHub Desktop.
<android.support.constraint.ConstraintLayout 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">
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:layout_margin="16dp"
android:textSize="12sp"
android:text="Today is Rami Jemli's birthday. Write a birthday wish on his timeline!"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/cake"
app:layout_constraintHorizontal_bias="0"
app:layout_constrainedWidth="true"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/cake"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:src="@drawable/all_ico_birthday"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment