Home | History | Annotate | Download | only in layout
      1 <!-- Copyright (C) 2013 The Android Open Source Project
      2 
      3      Licensed under the Apache License, Version 2.0 (the "License");
      4      you may not use this file except in compliance with the License.
      5      You may obtain a copy of the License at
      6 
      7           http://www.apache.org/licenses/LICENSE-2.0
      8 
      9      Unless required by applicable law or agreed to in writing, software
     10      distributed under the License is distributed on an "AS IS" BASIS,
     11      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12      See the License for the specific language governing permissions and
     13      limitations under the License.
     14 -->
     15 <?xml version="1.0" encoding="utf-8"?>
     16 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:layout_width="match_parent"
     18     android:layout_height="match_parent" >
     19 
     20     <RelativeLayout 
     21         android:id="@+id/container"
     22         android:layout_width="match_parent"
     23         android:layout_height="match_parent"
     24         android:clipChildren="false">
     25     
     26         <view
     27             android:id="@+id/nameTV"
     28             android:layout_width="wrap_content"
     29             android:layout_height="wrap_content"
     30             android:layout_alignParentTop="true"
     31             android:layout_centerHorizontal="true"
     32             android:layout_marginTop="120dp"
     33             class="com.example.android.toongame.SkewableTextView"
     34             android:text="Name?"
     35             android:textAppearance="?android:attr/textAppearanceMedium"
     36             android:textSize="@dimen/bigText" />
     37     
     38         <view
     39             class="com.example.android.toongame.SkewableTextView"
     40             android:id="@+id/ageTV"
     41             android:visibility="gone"
     42             android:layout_width="wrap_content"
     43             android:layout_height="wrap_content"
     44             android:layout_alignParentTop="true"
     45             android:layout_centerHorizontal="true"
     46             android:layout_marginTop="120dp"
     47             android:text="Difficulty?"
     48             android:textAppearance="?android:attr/textAppearanceLarge"
     49             android:textSize="@dimen/bigText" />
     50     
     51         <view
     52             class="com.example.android.toongame.SkewableTextView"
     53             android:id="@+id/creditTV"
     54             android:visibility="gone"
     55             android:layout_width="wrap_content"
     56             android:layout_height="wrap_content"
     57             android:layout_alignParentTop="true"
     58             android:layout_centerHorizontal="true"
     59             android:layout_marginTop="120dp"
     60             android:gravity="center"
     61             android:text="Parent's Credit Card Number?"
     62             android:textAppearance="?android:attr/textAppearanceMedium"
     63             android:textSize="64sp" />
     64 
     65         <LinearLayout
     66             android:layout_width="wrap_content"
     67             android:layout_height="wrap_content"
     68             android:layout_centerHorizontal="true"
     69             android:layout_alignParentBottom="true"
     70             android:visibility="gone"
     71             android:id="@+id/nameButtons"
     72             android:layout_marginBottom="132dp" >
     73             
     74             <Button
     75                 android:layout_width="wrap_content"
     76                 android:layout_height="wrap_content"
     77                 android:layout_margin="10dip"
     78                 android:padding="15dip"
     79                 android:background="@drawable/green_oval"
     80                 android:text="Bob"
     81                 android:textSize="36sp"
     82                 android:textColor="#fff"
     83                 android:textStyle="bold"
     84                 android:onClick="selectName"
     85                 android:id="@+id/bobButton"/>
     86 
     87             <Button
     88                 android:layout_width="wrap_content"
     89                 android:layout_height="wrap_content"
     90                 android:layout_margin="10dip"
     91                 android:padding="15dip"
     92                 android:background="@drawable/blue_oval"
     93                 android:text="Jane"
     94                 android:textSize="36sp"
     95                 android:textColor="#fff"
     96                 android:textStyle="bold"
     97                 android:onClick="selectName"
     98                 android:id="@+id/janeButton"/>
     99 
    100             <Button
    101                 android:layout_width="wrap_content"
    102                 android:layout_height="wrap_content"
    103                 android:layout_margin="10dip"
    104                 android:padding="15dip"
    105                 android:background="@drawable/magenta_oval"
    106                 android:text="Pat"
    107                 android:textSize="36sp"
    108                 android:textColor="#fff"
    109                 android:textStyle="bold"
    110                  android:onClick="selectName"
    111                 android:id="@+id/patButton"/>
    112 
    113         </LinearLayout>
    114 
    115         <LinearLayout
    116             android:layout_width="wrap_content"
    117             android:layout_height="wrap_content"
    118             android:layout_centerHorizontal="true"
    119             android:layout_alignParentBottom="true"
    120             android:visibility="gone"
    121             android:gravity="center"
    122             android:orientation="vertical"
    123             android:id="@+id/difficultyButtons"
    124             android:layout_marginBottom="50dp" >
    125             
    126             <Button
    127                 android:layout_width="wrap_content"
    128                 android:layout_height="wrap_content"
    129                 android:layout_margin="10dip"
    130                 android:padding="15dip"
    131                 android:background="@drawable/green_oval"
    132                 android:text="Easy"
    133                 android:textSize="36sp"
    134                 android:textColor="#fff"
    135                 android:textStyle="bold"
    136                 android:onClick="selectDifficulty"
    137                 android:id="@+id/easyButton"/>
    138 
    139             <Button
    140                 android:layout_width="wrap_content"
    141                 android:layout_height="wrap_content"
    142                 android:layout_margin="10dip"
    143                 android:padding="15dip"
    144                 android:background="@drawable/blue_oval"
    145                 android:text="Hard"
    146                 android:textSize="36sp"
    147                 android:textColor="#fff"
    148                 android:textStyle="bold"
    149                 android:onClick="selectDifficulty"
    150                 android:id="@+id/hardButton"/>
    151 
    152             <Button
    153                 android:layout_width="wrap_content"
    154                 android:layout_height="wrap_content"
    155                 android:layout_margin="10dip"
    156                 android:padding="15dip"
    157                 android:background="@drawable/red_oval"
    158                 android:text="Mega Hard"
    159                 android:textSize="36sp"
    160                 android:textColor="#000"
    161                 android:textStyle="bold|italic"
    162                 android:onClick="selectDifficulty"
    163                 android:id="@+id/megaHardButton"/>
    164 
    165         </LinearLayout>
    166         
    167         <LinearLayout
    168             android:layout_width="wrap_content"
    169             android:layout_height="wrap_content"
    170             android:layout_centerHorizontal="true"
    171             android:layout_alignParentBottom="true"
    172             android:visibility="gone"
    173             android:id="@+id/creditButtons1"
    174             android:layout_marginBottom="132dp" />
    175         
    176         <LinearLayout
    177             android:layout_width="wrap_content"
    178             android:layout_height="wrap_content"
    179             android:layout_centerHorizontal="true"
    180             android:layout_alignParentBottom="true"
    181             android:visibility="gone"
    182             android:id="@+id/creditButtons2"
    183             android:layout_marginBottom="70dp" />
    184         
    185         
    186     </RelativeLayout>
    187 </FrameLayout>