Demo entry 4029733

Stats (xml)

   

Submitted by anonymous on Mar 14, 2016 at 02:21
Language: Java. Code size: 4.3 kB.

<?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"
    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.Stats"
    android:background="@color/OliveGreen">

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Training"
        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"
        android:layout_alignParentBottom="true" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="Stats"
        android:id="@+id/header"
        android:textSize="50dp"
        android:typeface="normal"
        android:textColor="#6e3404"
        android:layout_marginTop="42dp"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_marginLeft="28dp"
        android:layout_marginStart="28dp" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="Highest Grade:"
        android:id="@+id/highest"
        android:layout_below="@+id/header"
        android:layout_alignLeft="@+id/header"
        android:layout_alignStart="@+id/header"
        android:layout_marginTop="37dp"
        android:textColor="#6e3404" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="Average Grade:"
        android:id="@+id/average"
        android:textColor="#6e3404"
        android:layout_centerVertical="true"
        android:layout_alignLeft="@+id/highest"
        android:layout_alignStart="@+id/highest" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="Days since last climb:"
        android:id="@+id/days"
        android:textColor="#6e3404"
        android:layout_below="@+id/average"
        android:layout_alignLeft="@+id/average"
        android:layout_alignStart="@+id/average"
        android:layout_marginTop="80dp" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:id="@+id/days_value"
        android:textColor="#6e3404"
        android:layout_alignTop="@+id/days"
        android:layout_toRightOf="@+id/highest_value"
        android:layout_toEndOf="@+id/highest_value" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:id="@+id/avg_value"
        android:textColor="#6e3404"
        android:layout_above="@+id/days"
        android:layout_toRightOf="@+id/average"
        android:layout_toEndOf="@+id/average" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:id="@+id/highest_value"
        android:textColor="#6e3404"
        android:layout_alignTop="@+id/highest"
        android:layout_toRightOf="@+id/avg_value"
        android:layout_toEndOf="@+id/avg_value" />
</RelativeLayout>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).