Android开发中,ConstraintLayout(约束布局)允许将一个控件放置在另一个的右上方
发布时间
阅读量:
阅读量
传统方式来查看效果展示图:(完全的创新!!!!)

实际上操作起来非常简便,只需将四个关键点对应匹配即可,具体可参考以下代码:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:gravity="center"
android:id="@+id/sign_in_button"
a
全部评论 (0)
还没有任何评论哟~
