新建Activity后,需要在res中的layout文件夹中,修改activity的layout.xml文件,书中一般让我们把
android:layout_width="match_parent"
android:layout_height="wrap_content"
通过百度了解,这是android的布局基本属性:match_parent、wrap_content是layout_width和layout_height的属性值。
match_parent:表示和父组件一样长度;
wrap_content:表示和自身内容一样长度;