Created
November 13, 2017 16:28
-
-
Save Tashachan/9b491ac53129ff0efe9b81b3b0295f6c to your computer and use it in GitHub Desktop.
Class5 your first project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout 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:background="#2b2b2b" | |
tools:context="com.example.android.helloandroid.MainActivity"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" > | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" /> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="3" | |
android:scaleType="centerCrop" | |
android:src="@drawable/keep" /> | |
<!-- Title at 20dp as suggested in MaterialDesign --> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="16dp" | |
android:fontFamily="sans-serif-condensed" | |
android:paddingLeft="16dp" | |
android:text="Udacity" | |
android:textColor="#f0eabd" | |
android:textSize="20dp" | |
android:textStyle="bold" /> | |
<!-- Body at 14dp --> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:fontFamily="sans-serif-condensed" | |
android:paddingLeft="16dp" | |
android:text="2465 Latham St, Mountain View, CA 94043" | |
android:textColor="#cfb17c" | |
android:textSize="14dp" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:fontFamily="sans-serif-condensed" | |
android:paddingLeft="16dp" | |
android:text="650-555-5555" | |
android:textColor="#cfb17c" | |
android:textSize="14dp" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:layout_weight="1" | |
android:fontFamily="sans-serif-condensed" | |
android:paddingLeft="20dp" | |
android:text="www.udacity.com" | |
android:textColor="#415f78" | |
android:textSize="14dp" | |
android:textStyle="bold"/> | |
</LinearLayout> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment