OMENSAH
6/7/2018 - 1:19 PM

wapmass-android-LinearLayout-vertical-orientation.xml

<?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"
    tools:context=".MainActivity"
    android:orientation="vertical" >

    <TextView
        android:gravity="center"
        android:background="#000"
        android:textColor="#fff"
        android:textSize="32sp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Oliver Mensah"/>

    <TextView
        android:gravity="center"
        android:layout_marginTop="10dp"
        android:background="#000"
        android:textColor="#fff"
        android:textSize="32sp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="42 years"/>

    <TextView
        android:gravity="center"
        android:layout_marginTop="10dp"
        android:background="#000"
        android:textColor="#fff"
        android:textSize="32sp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Abbeam Senior High School"/>

    <Button
        android:padding="60sp"
        android:layout_marginTop="100dp"
        android:layout_gravity="center"
        android:background="@color/colorPrimaryDark"
        android:textSize="35sp"
        android:text="Add To Class"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#fff"/>
</LinearLayout>


<!-- For creating a rounded button -->
    
 <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" android:padding="10dp">
    <solid android:color="#9cf"/>
    <corners android:radius="20dp"/>
</shape>