android:textSize=“20sp”
/>
<LinearLayout
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:orientation=“horizontal”
<ImageView
android:id=“@+id/yxlg”
android:layout_marginTop=“12dp”
android:layout_marginLeft=“80dp”
android:layout_width=“30dp”
android:layout_height=“30dp”
android:background=“@drawable/net”
/>
<TextView
android:paddingTop=“5dp”
android:paddingBottom=“5dp”
android:id=“@+id/yxld”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:text=" 用邮箱登录"
android:gravity=“center”
android:textSize=“35sp”
/>
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“1dp”
android:background=“@color/colorAccent”
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:orientation=“horizontal”>
<TextView
android:paddingTop=“12dp”
android:layout_width=“wrap_content”
android:layout_height=“60dp”
android:text=“名字:”
android:gravity=“left”
android:textSize=“25sp”
/>
<EditText
android:id=“@+id/mz”
android:paddingTop=“12dp”
android:background=“@null”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:textSize=“30sp”
/>
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“1dp”
android:background=“@color/colorAccent”
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:orientation=“horizontal”>
<TextView
android:paddingTop=“12dp”
android:layout_width=“wrap_content”
android:layout_height=“60dp”
android:text=“账号:”
android:gravity=“left”
android:textSize=“25sp”
/>
<EditText
android:id=“@+id/zh”
android:paddingTop=“12dp”
android:background=“@null”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:textSize=“30sp”
/>
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“1dp”
android:background=“@color/colorAccent”
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:orientation=“horizontal”>
<TextView
android:paddingTop=“12dp”
android:layout_width=“wrap_content”
android:layout_height=“60dp”
android:text=“密码:”
android:gravity=“left”
android:textSize=“25sp”
/>
<EditText
android:password=“true”
android:id=“@+id/mm”
android:paddingTop=“12dp”
android:background=“@null”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:textSize=“30sp”
/>
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“1dp”
android:background=“@color/colorAccent”
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:orientation=“horizontal”>
<TextView
android:paddingTop=“12dp”
android:layout_width=“wrap_content”
android:layout_height=“60dp”
android:text="性别: "
android:gravity=“left”
android:textSize=“25sp”
/>
<RadioGroup
android:id=“@+id/xb”
android:layout_marginTop=“15dp”
android:orientation=“horizontal”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”>
<RadioButton
android:id=“@+id/nan”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:text=“男”
android:textSize=“20sp”
/>
<RadioButton
android:id=“@+id/nu”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:text=“女”
android:textSize=“20sp”
/>
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“1dp”
android:background=“@color/colorAccent”
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:orientation=“horizontal”>
<TextView
android:paddingTop=“12dp”
android:layout_width=“wrap_content”
android:layout_height=“60dp”
android:text=“选择你的爱好:”
android:gravity=“left”
android:textSize=“25sp”
/>
<CheckBox
android:id=“@+id/cg”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:text=“唱歌”
android:textSize=“20sp” />
<CheckBox
android:id=“@+id/tw”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:text=“跳舞”
android:textSize=“20sp” />
<CheckBox
android:id=“@+id/ds”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:text=“读书”
android:textSize=“20sp” />
<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“1dp”
android:background=“@color/colorAccent”
<Button
android:id=“@+id/btn1”
android:layout_width=“match_parent”
android:layout_height=“100dp”
android:text=“提交”
android:textSize=“30sp”
/>
注册功能实现
package com.example.registerlogin;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.RadioGroup;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity implements View.OnClickListener,CompoundButton.OnCheckedChangeListener{
private EditText mz,zh,mm;
private Button btn1;
private String name,id,pwd,sex,hobby;
private RadioGroup xb;
private CheckBox cg,tw,ds;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
btn1=findViewById(R.id.btn1);
mz=findViewById(R.id.mz);
zh=findViewById(R.id.mz);
mm=findViewById(R.id.mz);
cg=findViewById(R.id.cg);
tw=findViewById(R.id.tw);
最后
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数初中级Android工程师,想要提升技能,往往是自己摸索成长,自己不成体系的自学效果低效漫长且无助。
因此我收集整理了一份《2024年Android移动开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点!不论你是刚入门Android开发的新手,还是希望在技术上不断提升的资深开发者,这些资料都将为你打开新的学习之门
如果你觉得这些内容对你有帮助,需要这份全套学习资料的朋友可以戳我获取!!
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!
衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。**
[外链图片转存中…(img-ESMMEcMY-1715428621487)]
[外链图片转存中…(img-PluWnirP-1715428621488)]
[外链图片转存中…(img-137BVqAn-1715428621489)]
[外链图片转存中…(img-LHhsjKM2-1715428621490)]
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点!不论你是刚入门Android开发的新手,还是希望在技术上不断提升的资深开发者,这些资料都将为你打开新的学习之门
如果你觉得这些内容对你有帮助,需要这份全套学习资料的朋友可以戳我获取!!
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!