Demo entry 4017079

Xml

   

Submitted by anonymous on Mar 13, 2016 at 05:59
Language: XML. Code size: 5.4 kB.

<?xml version="1.0" encoding="utf-8"?>
<GridLayout 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"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.cmps101w2016.ucsc.climbfinder.EnterClimb"
    android:columnCount="3"
    android:background="@color/OliveGreen"
    android:clickable="true">

    <TextView
        android:layout_column="0"
        android:layout_columnSpan="3"
        android:layout_row="0"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="Enter a Climb"
        android:id="@+id/enterClimbTextView"
        android:textSize="50dp"
        android:typeface="normal"
        android:textColor="#6e3404" />

    <TextView
        android:layout_column="0"
        android:layout_row="1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="Grade: "
        android:layout_gravity="center"
        android:id="@+id/Grade"
        android:textColor="@color/Brown"
        android:layout_marginTop="40dp" />

    <Spinner
        android:id="@+id/ropeGrades"
        android:layout_row="2"
        android:layout_column="1"
        android:layout_columnSpan="2"
        android:layout_gravity="center"
        android:layout_rowSpan="2"
        android:entries="@array/ropeGrades"
        android:visibility="invisible"
        />

    <Spinner
        android:visibility="invisible"
        android:id="@+id/boulderGrades"
        android:layout_gravity="center"
        android:layout_row="2"
        android:layout_column="1"
        android:layout_columnSpan="2"
        android:layout_rowSpan="2"
        android:entries="@array/boulderGrades"
        />

    <CheckBox
        android:id="@+id/boulderingCheckBox"
        android:layout_row="3"
        android:layout_column="0"
        android:layout_columnSpan="2"
        android:layout_gravity="top"
        android:text="Bouldering"
        android:onClick="ropeCheckOnClick" />

    <CheckBox
        android:id="@+id/ropeCheckBox"
        android:layout_row="4"
        android:layout_column="0"
        android:layout_columnSpan="2"
        android:layout_gravity="top"
        android:text="Top Rope"
        android:onClick="boulderingCheckOnClick" />


    <TextView
        android:layout_row="5"
        android:layout_column="0"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="Date:  "
        android:id="@+id/date"
        android:textColor="@color/Brown"
        android:layout_marginTop="50dp"
        android:layout_gravity="top|center"
         />

    <CheckBox
        android:layout_gravity="top"
        android:id="@+id/currentDayRadioButton"
        android:layout_row="5"
        android:layout_column="1"
        android:layout_columnSpan="2"
        android:text="Today"
        android:layout_marginTop="50dp"
        android:onClick="currentDayOnClick" />

    <Spinner
        android:id="@+id/daySpinner"
        android:layout_row="6"
        android:layout_column="0"
        android:entries="@array/dayOfMonth"
        android:layout_gravity="top"
        />
    <Spinner
        android:layout_gravity="top"
        android:id="@+id/monthSpinner"
        android:layout_row="6"
        android:layout_column="1"
        android:entries="@array/monthOfYear"
        />
    <Spinner
        android:layout_gravity="top"
        android:id="@+id/yearSpinner"
        android:layout_row="6"
        android:layout_column="2"
        android:entries="@array/year"
        />

    <Button
        style="?android:attr/buttonStyleSmall"
        android:layout_row="7"
        android:layout_column="0"
        android:layout_columnSpan="3"
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        android:text="Save Climb"
        android:id="@+id/SaveClimb"
        android:background="@drawable/roundshapebtn"
        android:padding="10dp"
        android:clickable="true"
        android:layout_marginTop="30dp"
        android:onClick="onFormEntry"
        android:layout_gravity="center"/>

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_row="8"
        android:layout_column="0"
        android:text="Back"
        android:id="@+id/Back"
        android:background="@drawable/oval"
        android:padding="10dp"
        android:textSize="15dp"
        android:onClick="Back"
        android:clickable="true"
        android:contextClickable="false"
        android:typeface="normal"
    />


</GridLayout>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).