分数计算界面代码

 

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:andro>
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg" >

    <TextView
        android:>
        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:>
        android:layout_width="fill_parent"
        android:layout_height="40dp"
        android:text="@string/terminalText" />

    <TextView
        android:>
        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:>
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:text="@string/scoreText" />

    <Button
        android:>
        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:>
        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:>
        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:>
        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>

 

分数计算界面截图

 第三个Sprint ------第六天

 

 

 

 

  

相关文章:

  • 2021-05-25
  • 2021-05-24
  • 2021-12-15
  • 2022-02-17
  • 2021-06-26
  • 2021-06-10
  • 2021-06-15
  • 2021-08-12
猜你喜欢
  • 2021-10-06
  • 2021-12-23
  • 2022-02-04
  • 2021-07-01
  • 2021-06-13
  • 2021-12-29
相关资源
相似解决方案