zoukankan      html  css  js  c++  java
  • 第三个Sprint ------第六天

     分数计算界面代码

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/bg" >
    
        <TextView
            android:id="@+id/wrong"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:layout_marginRight="72dp"
            android:layout_marginTop="79dp"
            android:text="@string/wrongText" />
    
        <TextView
            android:gravity="center"
            android:id="@+id/theEndtext"
            android:layout_width="fill_parent"
            android:layout_height="40dp"
            android:text="@string/terminalText" />
    
        <TextView
            android:id="@+id/rnumber"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/wrong"
            android:layout_below="@+id/wrong"
            android:layout_marginTop="40dp"
            android:text="@string/rightandwrongText" />
    
        <TextView
            android:layout_marginLeft="20dp"
            android:id="@+id/ToatlText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:text="@string/scoreText" />
    
        <Button
            android:id="@+id/Back"
            android:onClick="onclick"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/score"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="52dp"
            android:background="@drawable/button_selector"
            android:text="@string/userSubmitText" />
    
        <TextView
            android:id="@+id/wnumber"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBaseline="@+id/rnumber"
            android:layout_alignBottom="@+id/rnumber"
            android:layout_alignRight="@+id/right"
            android:text="@string/rightandwrongText" />
    
        <TextView
            android:id="@+id/right"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBaseline="@+id/wrong"
            android:layout_alignBottom="@+id/wrong"
            android:layout_marginRight="24dp"
            android:layout_toLeftOf="@+id/Back"
            android:text="@string/rightText" />
    
        <TextView
            android:id="@+id/score"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignRight="@+id/Back"
            android:layout_below="@+id/ToatlText"
            android:text="@string/rightandwrongText" />
    
    </RelativeLayout>

     

    分数计算界面截图

     

      

  • 相关阅读:
    ajax跨域
    抽奖概率计算
    应用版本
    empty
    java线程池原理
    java队列
    jquery选择器项目实例分析
    jquery操作dom
    40款非常棒的 jQuery 插件和制作教程(系列一)
    vijosP1046 观光旅游(最小环)
  • 原文地址:https://www.cnblogs.com/kangqu/p/5040918.html
Copyright © 2011-2022 走看看