Skip to content

Instantly share code, notes, and snippets.

@Neyt
Last active October 15, 2016 20:52
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 Neyt/bef574239d4e202862f0e37e310aa5d5 to your computer and use it in GitHub Desktop.
Save Neyt/bef574239d4e202862f0e37e310aa5d5 to your computer and use it in GitHub Desktop.
from https://classroom.udacity.com/nanodegrees/ Android developer. We create the code for a simple app
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"
android:paddingBottom="16dp"
android:orientation="vertical">
<ImageView
android:src="@drawable/ocean"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:scaleType="centerCrop"
android:layout_marginBottom="8dp" />
<TextView
android:text="You're invited!"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:textSize="45sp"
android:background="#009688"/>
<TextView
android:text="Bonfire at the beach"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:textSize="24sp"
android:background="#009688"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment