Skip to content

Instantly share code, notes, and snippets.

@shamikalashawn
Created May 13, 2018 01:16
Show Gist options
  • Save shamikalashawn/4fbe3ef2fb2ab2785fe22659232beab8 to your computer and use it in GitHub Desktop.
Save shamikalashawn/4fbe3ef2fb2ab2785fe22659232beab8 to your computer and use it in GitHub Desktop.
Udacity Business Card App
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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"
android:orientation="vertical"
tools:context="com.example.android.helloandroid.MainActivity">
<ImageView
android:id="@+id/udacity"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3"
android:layout_marginTop="64dp"
android:layout_marginBottom="16dp"
android:src="@drawable/udacity" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
android:text="Udacity" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
android:text="650-555-5555" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
android:text="www.Udacity.com" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
android:text="2465 Latham St, Mountain View, CA 94043" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
android:layout_weight="1" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment