Created
November 15, 2017 09:01
-
-
Save evanca/12f42c48fea09602d10fec8eb81fccf9 to your computer and use it in GitHub Desktop.
Google Developer Challenge Scholarship - Android Basics / Hello Android
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"?> | |
<RelativeLayout 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" | |
tools:context=".MainActivity"> | |
<ImageView | |
android:id="@+id/photo_image_view" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:scaleType="centerCrop" | |
android:src="@drawable/bg" | |
/> | |
<ImageView | |
android:id="@+id/logo_image_view" | |
android:layout_width="225dp" | |
android:layout_height="225dp" | |
android:src="@drawable/logo" | |
android:layout_margin="10dp" | |
/> | |
<LinearLayout | |
android:id="@+id/LinearLayout_A" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentRight="true" | |
android:layout_below="@id/logo_image_view" | |
android:layout_marginBottom="20dp" | |
android:layout_marginTop="20dp" | |
android:background="#FFFFFF" | |
android:gravity="center_vertical" | |
android:orientation="vertical"> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:fontFamily="@font/open_sans" | |
android:paddingBottom="5dp" | |
android:paddingLeft="15dp" | |
android:paddingRight="15dp" | |
android:paddingTop="10dp" | |
android:text="2465 Latham St" | |
android:textColor="#757c81" | |
android:textSize="20sp" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:fontFamily="@font/open_sans" | |
android:paddingBottom="5dp" | |
android:paddingLeft="15dp" | |
android:paddingRight="15dp" | |
android:paddingTop="5dp" | |
android:text="Mountain View, CA 94043" | |
android:textColor="#757c81" | |
android:textSize="20sp" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:fontFamily="@font/open_sans" | |
android:paddingBottom="10dp" | |
android:paddingLeft="15dp" | |
android:paddingRight="15dp" | |
android:paddingTop="5dp" | |
android:text="650-555-5555" | |
android:textColor="#757c81" | |
android:textSize="20sp" /> | |
</LinearLayout> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:padding="15dp" | |
android:layout_margin="35dp" | |
android:text="Master in-demand skills. Build and design amazing projects. Earn a valued credential. Be in demand." | |
android:fontFamily="@font/open_sans" | |
android:textColor="#FFFFFF" | |
android:background="#CC02B3E4" | |
android:layout_below="@id/LinearLayout_A" | |
android:autoSizeTextType="uniform" | |
android:autoSizeMaxTextSize="20sp" | |
android:gravity="fill_vertical" | |
/> | |
</RelativeLayout> |
Author
evanca
commented
Nov 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment