<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="https://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#00aaff">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:orientation="vertical"
android:padding="30dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:drawableLeft="@mipmap/ic_launcher"
android:text="QQ"
android:textSize="40sp" />
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="30dp"
android:hint="QQ号码/手机号/邮箱" />
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="密码" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="登录"
android:textSize="20sp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="忘记密码"
android:textColor="#fff"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="新用户注册"
android:textColor="#fff"
android:textSize="16sp" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="50dp"
android:text="登录即代表阅读并同意阅读条款"
android:textColor="#fff"
android:textSize="20sp"/>
</RelativeLayout>

没看到那个警告吗,百度翻译一下你会发现它说的是LinearLayout设置这个属性是无效的,这个是外面RelativeLayout的属性
这里有没有重新编辑留言和编辑文章的功能
因为你的布局呀,你的两行文字都在线性布局里。而你的线性布局的方向是垂直方向,所以你的文字就垂直方向排放咯。你可以再去看看视频是怎么样写的呢。