以一个简单的视频播放布局文件为例介绍文件中参数的含义。
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout //设置布局管理器为LinearLayout
android:layout_width="match_parent" //设置当前组件宽度。match_parent表示充满整个父元素。
android:layout_height="match_parent" //设置组件高度。
android:layout_marginEnd="16dp" //距离边缘的位置信息
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginStart="16dp"
android:layout_