Skip to content

Instantly share code, notes, and snippets.

@RB-93
Created April 20, 2018 07:26
Show Gist options
  • Save RB-93/6b591f28df461924e90d9cd11591b489 to your computer and use it in GitHub Desktop.
Save RB-93/6b591f28df461924e90d9cd11591b489 to your computer and use it in GitHub Desktop.
Own Card App - UDACITY Thanks giving card
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ff6017"
tools:context=".MainActivity">
<com.makeramen.roundedimageview.RoundedImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/card_sketch"
android:scaleType="fitCenter"
android:paddingLeft="20dp"
android:paddingRight="20dp"
app:riv_corner_radius="30dp"
app:riv_border_width="2dp"
app:riv_border_color="#FFCDD2"
app:riv_mutate_background="true"
app:riv_tile_mode="clamp"
app:riv_oval="false" />
<TextView
android:id="@+id/text_top"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold"
android:fontFamily="cursive"
android:text="@string/text_top" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="15dp"
android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold"
android:fontFamily="cursive"
android:text="@string/text_bottom"/>
</RelativeLayout>
@RB-93
Copy link
Author

RB-93 commented Apr 20, 2018

Own Card app Screenshot

own card snap

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