zoukankan      html  css  js  c++  java
  • 每日总结

    1.今天学习android的相对布局,利用这个完成了一个界面

    <?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>
    
    
  • 相关阅读:
    Eclipse JSP/Servlet 环境搭建
    2017 世界主要国家和地区 GDP 排名
    Twsited异步网络框架
    RabbitMQ队列,RedisMemcached缓存
    Paramiko,数据库
    SelectPollEpoll异步IO与事件驱动
    进程,线程,协程
    socketserver模块
    socket
    类的相关知识
  • 原文地址:https://www.cnblogs.com/chenghaixiang/p/14908090.html
Copyright © 2011-2022 走看看