当前位置: 移动技术网 > 移动技术>移动开发>Android > 安卓开发应用

安卓开发应用

2020年07月09日  | 移动技术网移动技术  | 我要评论

RadioButton
–RadioButton为单选按钮,它需要与RadioGroup配合使用,提供两个或多个互斥的选项集

–RadioGroup是单选组合框,可容纳多个RadioButton,并把它们组合在一起,实现单选状态

Android的日志工具Log
Android中的日志工具类是Log(android.util.Log)

Log.v ( ) :用于打印那些最为琐碎、意义最小的日志信息
Log.d ( ) :用于打印一些调试信息
Log.i ( ) :用于打印一些比较重要的数据
Log.w ( ) :用于打印一些警告信息
Log.e ( ) :用于打印程序中的错误信息

页面的创建

上课敲的代码

<?xml version="1.0" encoding="utf-8"?>

<ImageView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:background="@color/black"
    android:layout_marginTop="150dp"
    android:src="@drawable/icon_smart_park" />

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="20dp"
    android:layout_marginLeft="18dp"
    android:layout_marginRight="18dp"
    android:background="@drawable/input_normal"
    android:hint="请输入账号"
    android:textSize="36dp" />

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    android:layout_marginLeft="18dp"
    android:layout_marginRight="18dp"
    android:background="@drawable/input_normal"
    android:hint="请输入密码"
    android:textSize="36dp"/>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="18dp"
    android:layout_marginRight="18dp"
    android:orientation="horizontal">
    <CheckBox
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="记住密码" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="                                                             修改密码"/>
</LinearLayout>
<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="20dp"
    android:background="@drawable/btn_login_normal"/>
<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    android:background="@drawable/btn_register_normal"/>

本文地址:https://blog.csdn.net/weixin_46359264/article/details/107156558

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网