Skip to content

Instantly share code, notes, and snippets.

@redtripleAAA
Created January 27, 2018 06:50
Show Gist options
  • Save redtripleAAA/f46a8f99931f8097537a3035a989e38f to your computer and use it in GitHub Desktop.
Save redtripleAAA/f46a8f99931f8097537a3035a989e38f to your computer and use it in GitHub Desktop.
Padding in Lesson 3
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:paddingTop="0dp"
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:paddingLeft="16dp"
android:paddingBottom="8dp"
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:paddingLeft="16dp"
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