zoukankan      html  css  js  c++  java
  • 项目总结

    按健民大大的要求完成一个安卓的体温填报页面

    这是我写xml代码:

    <?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"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:padding="15dp">
    <EditText
    android:id="@+id/name_1"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:textSize="16sp"
    android:textColor ="#FFAD33"
    android:layout_below="@id/position_text_view"
    android:hint="姓名"

    />
    <Button
    android:id="@+id/butt_1"
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:layout_below="@id/wendu_1"
    android:text="确定"
    android:textColor="#fff"
    android:textSize="18sp"
    />
    <RadioGroup
    android:id="@+id/sex"
    android:layout_below="@id/name_1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal">

    <RadioButton
    android:id="@+id/sex_1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text=""
    android:textColor="#FF6600"
    android:textSize="18sp" />
    <RadioButton
    android:id="@+id/sex_2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text=""
    android:textColor="#FF6600"
    android:textSize="18sp"
    />
    </RadioGroup>
    <EditText
    android:id="@+id/wendu_1"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:textSize="16sp"
    android:textColor ="#FFAD33"
    android:hint="温度"
    android:layout_below="@id/sex"
    />
    <TextView
    android:id="@+id/position_text_view"
    android:layout_width="match_parent"
    android:layout_height="300dp" />
    <TextView
    android:id="@+id/ShowTime"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="日期:"
    android:textColor="@color/black"
    android:layout_below="@id/butt_1"
    android:textSize="20sp" />



    </RelativeLayout>
    效果:
     
  • 相关阅读:
    CSP-201512
    SCC-Tarjan
    CSP-201509
    Codeforces Round #612 (Div. 2)/A/B/C/D
    CF-Hello 2020/A/B/C
    Anaconda介绍、安装及使用教程
    Linux 新手应该知道的 26 个命令
    Python编码规范:IF中的多行条件
    Python assert 断言函数
    数据结构常见的八大排序算法(详细整理)
  • 原文地址:https://www.cnblogs.com/chenghaixiang/p/14908777.html
Copyright © 2011-2022 走看看