Skip to content

Instantly share code, notes, and snippets.

@Zarifboyev
Created October 21, 2020 17:41
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 Zarifboyev/6e80ada57fe8d44095ec190f8b728f77 to your computer and use it in GitHub Desktop.
Save Zarifboyev/6e80ada57fe8d44095ec190f8b728f77 to your computer and use it in GitHub Desktop.
Happy Birthday Card ilovasining kodlari
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/cake" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="20dp"
android:fontFamily="@font/happy_birthday"
android:text="Hapyy Birthday Ben!"
android:textColor="@android:color/holo_purple"
android:textSize="36sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="20dp"
android:layout_marginBottom="20dp"
android:fontFamily="@font/happy_birthday"
android:text="From Lyla"
android:textColor="@android:color/black"
android:textSize="36sp" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment