Created
January 25, 2018 16:11
-
-
Save thmsdnnr/8b0f5d495876843ac7e5dcd629004be9 to your computer and use it in GitHub Desktop.
One-page Udacity App
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"?> | |
<LinearLayout 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:orientation="vertical" | |
android:screenOrientation="portrait" | |
tools:context="com.example.android.helloandroid.MainActivity"> | |
<ImageView | |
android:layout_height="320dp" | |
android:layout_width="match_parent" | |
android:src="@drawable/udacity" | |
android:scaleType="centerCrop" | |
/> | |
<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" | |
android:autoLink="web" | |
android:linksClickable="true" | |
android:text="Udacity.com" | |
android:textAlignment="center" | |
android:gravity="center_vertical" | |
android:textAppearance="@style/TextAppearance.AppCompat.Display1" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" | |
android:gravity="center_vertical" | |
android:fontFamily="monospace" | |
android:text="/* curated content\ninspiring instructors\nlife-changing opportunities */" | |
android:textAlignment="center" | |
android:textAppearance="@style/TextAppearance.AppCompat.Headline" | |
android:textSize="14sp" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" | |
android:gravity="center_vertical" | |
android:text="2465 Latham St Mountain View, CA 94043\n650-555-5555" | |
android:textAlignment="center" | |
android:textAppearance="@style/TextAppearance.AppCompat.Small" | |
android:textStyle="italic" /> | |
</LinearLayout> | |
</LinearLayout> |
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"?> | |
<resources> | |
<color name="colorPrimary">#3F51B5</color> | |
<color name="colorPrimaryDark">#404C67</color> | |
<color name="colorAccent">#5AAABB</color> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment