Skip to content

Instantly share code, notes, and snippets.

@hidelkys
Created April 12, 2018 04:32
Show Gist options
  • Save hidelkys/71fdd48e6f75b7ad34fd8413436ad610 to your computer and use it in GitHub Desktop.
Save hidelkys/71fdd48e6f75b7ad34fd8413436ad610 to your computer and use it in GitHub Desktop.
HelloAndroid
<?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"
android:background="#303c47">
<ImageView
android:id="@+id/imageView"
android:layout_width="500dp"
android:layout_height="200dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:scaleType="centerCrop"
android:layout_weight="7"
android:src="@drawable/udacity" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageView"
android:layout_marginTop="13dp"
android:layout_toStartOf="@+id/imageView2"
android:fontFamily="casual"
android:text="Udacity
www.udacity.com
2465 Latham St
Mountain View, CA 94043
650-555-5555"
android:textAlignment="center"
android:textColor="@android:color/white"
android:textSize="16sp" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_weight="3"
android:scaleType="fitCenter"
android:src="@drawable/muchwow" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment