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>
    效果:
     
  • 相关阅读:
    iphone开发之iphone解析xml&json1
    php中mb_convert_encoding 和 iconv 的区别
    Xcode开发 字符串用法
    iphone tableView的使用(zz)
    今天你抛弃了ASP.NET了吗?问题篇
    用代码初始化ViewController的View
    xcode 4.3 调试的时候显示汇编,怎么办?
    Show image from SQL image field
    provider: SQL 网络接口, error: 26 定位指定的服务器/实例时出错
    Dymanic Add Section For WebConfig
  • 原文地址:https://www.cnblogs.com/chenghaixiang/p/14908777.html
Copyright © 2011-2022 走看看