Skip to content

Commit

Permalink
added page for the actual leaderboard (standin for now). edited leade…
Browse files Browse the repository at this point in the history
…rboard menu page and strings.xml
  • Loading branch information
AcidHotpocket committed Apr 2, 2014
1 parent a428eda commit 074d25b
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
2 changes: 1 addition & 1 deletion res/layout/leaderboard_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
android:textSize="20sp" />

<Button
android:id="@+id/challenge_back"
android:id="@+id/leader_menu_back"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@color/red" />
Expand Down
61 changes: 61 additions & 0 deletions res/layout/leaderboard_page_mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/lightblue"
android:orientation="vertical" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="30dp" >

<TextView
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/leaderboard_page_title"
android:textSize="20sp" />

<Button
android:id="@+id/leader_back"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@color/red" />
</LinearLayout>

<TextView
android:layout_width="280dp"
android:layout_height="293dp"
android:background="@color/yellow"
android:layout_marginLeft="20dp"
android:text="@string/leaders_placeholder"
android:layout_marginBottom="20dp" />

<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >

<Button
android:id="@+id/top"
android:layout_width="20dp"
android:layout_height="40dp"
android:background="@color/green"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/you"
android:layout_marginLeft="60dp"
android:text="@string/top_button" />

<Button
android:id="@id/you"
android:layout_width="60dp"
android:layout_height="40dp"
android:background="@color/green"
android:layout_alignParentRight="true"
android:layout_marginLeft="70dp"
android:layout_marginRight="70dp"
android:text="@string/you_button" />
</RelativeLayout>
</LinearLayout>
4 changes: 4 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<string name="challenge_description">Please select a difficulty</string>
<string name="leaderboard_title">Leaderboards!</string>
<string name="leaderboard_description">Select your desired leaderboard</string>
<string name="leaderboard_page_title">nth Grade Leaderboard!</string>
<string name="leaders_placeholder">1. You (others WOULD be here)</string>
<string name="top_button">Top</string>
<string name="you_button">Your Rank</string>

<string name="grade1">1st Grade</string>
<string name="grade2">2nd Grade</string>
Expand Down

0 comments on commit 074d25b

Please sign in to comment.