1. 布局管理器线性两种,垂直线性布局管理器,水平线性布局管理器,边缘外的组件不会显示
2. 主要2个属性 orientation 和 gravity
这两个是LinearLayout属性,写在LinerLayout标记内
3. 还有子属性(就是写在LinearLayout内的子组件的属性)
layout_weight:组件占父容器剩余空间的比例
4. gravity属性,若要设置多个,则要用|分开
5.mipmap的x越多,图片越小,而且(好像)会根据手机分辨率变化
实例实现微信登录界面
<?xml version="1.0" encoding="utf-8"?> <LinearLayout 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" android:orientation="vertical" android