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>

     

    分数计算界面截图

     

      

  • 相关阅读:
    基于android studio的快捷开发(将持续更新)
    安卓Design包之AppBar和Toolbar的联用
    安卓Design包之超强控件CoordinatorLayout与SnackBar的简单使用
    安卓Design之NavigationView的使用
    安卓Design包之TabLayout控件的简单使用
    使用ViewPager实现自动轮播
    高仿QQ顶部控件之IOS SegmentView
    强大的图片加载框架Fresco的使用
    安卓第一次启动引导页使用ViewPager实现
    android官方下拉刷新控件SwipeRefreshLayout的使用
  • 原文地址:https://www.cnblogs.com/kangqu/p/5040918.html
Copyright © 2011-2022 走看看