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>
    
    
  • 相关阅读:
    当Django模型迁移时,报No migrations to apply 问题时
    django--各个文件的含义
    django--创建项目
    1013. Battle Over Cities (25)
    1011. World Cup Betting (20)
    1009. Product of Polynomials (25)
    1007. Maximum Subsequence Sum (25)
    1006. Sign In and Sign Out (25)
    1008. Elevator (20)
    1004. Counting Leaves (30)
  • 原文地址:https://www.cnblogs.com/chenghaixiang/p/14908090.html
Copyright © 2011-2022 走看看