Main Activity Layout

admin 2017.06.02 12:31 Views : 14

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:background="@android:color/darker_gray"
                tools:context="com.jckim.joseph.gmiretreatapplication.MainActivity">

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?attr/colorPrimary"
        android:minHeight="?attr/actionBarSize"
        app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
        app:theme="@style/ThemeOverlay.AppCompat.Dark"
        />


    <ImageView
        android:id="@+id/imageView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_below="@+id/toolbar"
        app:srcCompat="@drawable/gmisign"/>


    <Button
        android:id="@+id/aboutbutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/locationbutton"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="16dp"
        android:background="@android:drawable/bottom_bar"
        android:onClick="gotoAbout"
        android:text="은혜기도원 둘러보기"
        android:textAppearance="@style/TextAppearance.AppCompat.Body2"
        android:textColor="#ffffffff"
        android:textStyle="bold"/>


    <Button
        android:id="@+id/locationbutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/contactbutton"
        android:layout_alignLeft="@+id/aboutbutton"
        android:layout_alignStart="@+id/aboutbutton"
        android:layout_marginBottom="16dp"
        android:background="@android:drawable/bottom_bar"
        android:onClick="gotoMap"
        android:text="위치 및 찾아 오시는 길"
        android:textAppearance="@style/TextAppearance.AppCompat.Body2"
        android:textColor="#ffffffff"
        android:textStyle="bold"/>

    <Button
        android:id="@+id/contactbutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/locationbutton"
        android:layout_alignParentBottom="true"
        android:layout_alignStart="@+id/locationbutton"
        android:layout_marginBottom="14dp"
        android:background="@android:drawable/bottom_bar"
        android:onClick="gotoContact"
        android:text="문의 및 안내"
        android:textAppearance="@style/TextAppearance.AppCompat.Body2"
        android:textColor="#ffffffff"
        android:textStyle="bold"/>

    <ImageView
        android:id="@+id/imageView4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/aboutbutton"
        android:layout_alignStart="@+id/aboutbutton"
        android:layout_below="@+id/toolbar"
        android:layout_marginTop="11dp"
        app:srcCompat="@drawable/gmi72"/>

    <TextView
        android:id="@+id/textView5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignTop="@+id/imageView4"
        android:layout_marginLeft="17dp"
        android:layout_marginStart="17dp"
        android:layout_marginTop="23dp"
        android:layout_toRightOf="@+id/imageView4"
        android:text="Grace Ministries International"
        android:textColor="#ffffff"
        android:textStyle="bold"/>

    <TextView
        android:id="@+id/textView6"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/textView5"
        android:layout_alignStart="@+id/textView5"
        android:layout_below="@+id/textView5"
        android:text="Retreat Center"
        android:textColor="#ffffff"
        android:textStyle="bold"/>


</RelativeLayout>