详细对应的属性如下:
1、 row(默认值):水平方向、从左向右依次排列
<?xml version="1.0" encoding="utf-8"?><com.google.android.flexbox.FlexboxLayout 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”
app:flexDirection=“row”>
<TextView
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:gravity=“center”
android:padding=“5dp”
android:text=“row(默认值):水平方向、从左向右依次排列” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#fd0202”
android:gravity=“center”
android:text=“textview1”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#fdcf02”
android:gravity=“center”
android:text=“textview2”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#38fd02”
android:gravity=“center”
android:text=“textview3”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#02bafd”
android:gravity=“center”
android:text=“textview4”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#020afd”
android:gravity=“center”
android:text=“textview5”
android:textColor=“#ffffff” />
</com.google.android.flexbox.FlexboxLayout>
2、 row_reverse:水平方向、从右向左依次排列
<?xml version="1.0" encoding="utf-8"?><com.google.android.flexbox.FlexboxLayout 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”
app:flexDirection=“row_reverse”>
<TextView
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:gravity=“center”
android:padding=“5dp”
android:text=“row_reverse:水平方向、从右向左依次排列” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#fd0202”
android:gravity=“center”
android:text=“textview1”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#fdcf02”
android:gravity=“center”
android:text=“textview2”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#38fd02”
android:gravity=“center”
android:text=“textview3”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#02bafd”
android:gravity=“center”
android:text=“textview4”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#020afd”
android:gravity=“center”
android:text=“textview5”
android:textColor=“#ffffff” />
</com.google.android.flexbox.FlexboxLayout>
3、 column:垂直方向、从上向下依次排列
<?xml version="1.0" encoding="utf-8"?><com.google.android.flexbox.FlexboxLayout 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”
app:flexDirection=“column”>
<TextView
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:padding=“5dp”
android:gravity=“center”
android:text=“column:垂直方向、从上向下依次排列” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#fd0202”
android:gravity=“center”
android:text=“textview1”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#fdcf02”
android:gravity=“center”
android:text=“textview2”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#38fd02”
android:gravity=“center”
android:text=“textview3”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#02bafd”
android:gravity=“center”
android:text=“textview4”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#020afd”
android:gravity=“center”
android:text=“textview5”
android:textColor=“#ffffff” />
</com.google.android.flexbox.FlexboxLayout>
4、 column-reverse:垂直方向、从下向上依次排列
<?xml version="1.0" encoding="utf-8"?><com.google.android.flexbox.FlexboxLayout 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”
app:flexDirection=“column_reverse”>
<TextView
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:padding=“5dp” android:gravity=“center”
android:text=“column-reverse:垂直方向、从下向上依次排列” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#fd0202”
android:gravity=“center”
android:text=“textview1”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#fdcf02”
android:gravity=“center”
android:text=“textview2”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#38fd02”
android:gravity=“center”
android:text=“textview3”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#02bafd”
android:gravity=“center”
android:text=“textview4”
android:textColor=“#ffffff” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“match_parent”
android:layout_height=“80dp”
android:background=“#020afd”
android:gravity=“center”
android:text=“textview5”
android:textColor=“#ffffff” />
</com.google.android.flexbox.FlexboxLayout>
- Flexboxlayout大布局属性之-flexWrap
1、nowrap:不换行
2、wrap:按正常方向换行
3、wrap-reverse:按反方向换行
详细对应的属性如下:
1、nowrap:不换行
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
app:flexWrap=“nowrap”>
<TextView
android:layout_width=“80dp”
android:layout_height=“80dp”
android:gravity=“center”
android:padding=“5dp”
android:text=“nowrap:不换行” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#06ff02”
android:gravity=“center”
android:text=“textview3” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#02c8ff”
android:gravity=“center”
android:text=“textview4” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#022cff”
android:gravity=“center”
android:text=“textview5” />
</com.google.android.flexbox.FlexboxLayout>
2、wrap:按正常方向换行
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
app:flexWrap=“wrap”>
<TextView
android:layout_width=“80dp”
android:layout_height=“80dp”
android:gravity=“center”
android:padding=“5dp”
android:text=“wrap:按正常方向换行” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#06ff02”
android:gravity=“center”
android:text=“textview3” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#02c8ff”
android:gravity=“center”
android:text=“textview4” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#022cff”
android:gravity=“center”
android:text=“textview5” />
</com.google.android.flexbox.FlexboxLayout>
3、wrap-reverse:按反方向换行
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
app:flexWrap=“wrap_reverse”>
<TextView
android:layout_width=“80dp”
android:layout_height=“80dp”
android:gravity=“center”
android:padding=“5dp”
android:text=“wrap-reverse:按反方向换行” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#06ff02”
android:gravity=“center”
android:text=“textview3” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#02c8ff”
android:gravity=“center”
android:text=“textview4” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#022cff”
android:gravity=“center”
android:text=“textview5” />
</com.google.android.flexbox.FlexboxLayout>
- Flexboxlayout 5大布局属性之-justifyContent
1、flex_start(默认值):左对齐
2、flex-end:右对齐
3、center: 居中
4、space-between:两端对齐,控件之间的间隔相等
5、space-around:每个控件距离两侧的间隔相等(项目之间的间隔比项目与边框的间隔大一倍)
详细对应的属性如下:
1、flex_start(默认值):左对齐
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
app:justifyContent=“flex_start”>
<TextView
android:layout_width=“80dp”
android:layout_height=“80dp”
android:gravity=“center”
android:padding=“5dp”
android:text=“flex_start(默认值):左对齐” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
</com.google.android.flexbox.FlexboxLayout>
2、flex-end:右对齐
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
app:justifyContent=“flex_end”>
<TextView
android:layout_width=“80dp”
android:layout_height=“80dp”
android:gravity=“center”
android:padding=“5dp”
android:text=“flex-end:右对齐” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
</com.google.android.flexbox.FlexboxLayout>
3、center: 居中
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
app:justifyContent=“center”>
<TextView
android:layout_width=“80dp”
android:layout_height=“80dp”
android:gravity=“center”
android:padding=“5dp”
android:text=“center: 居中” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
</com.google.android.flexbox.FlexboxLayout>
4、space-between:两端对齐,控件之间的间隔相等
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
app:justifyContent=“space_between”>
<TextView
android:layout_width=“80dp”
android:layout_height=“wrap_content”
android:gravity=“center”
android:padding=“5dp”
android:text=“space-between:两端对齐,控件之间的间隔相等” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
</com.google.android.flexbox.FlexboxLayout>
5、space-around:每个控件距离两侧的间隔相等(项目之间的间隔比项目与边框的间隔大一倍)
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
app:justifyContent=“space_around”>
<TextView
android:layout_width=“80dp”
android:layout_height=“wrap_content”
android:gravity=“center”
android:padding=“5dp”
android:text=“space-around:每个控件距离两侧的间隔相等(项目之间的间隔比项目与边框的间隔大一倍)” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“wrap_content”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“wrap_content”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
</com.google.android.flexbox.FlexboxLayout>
- Flexboxlayout 5大布局属性之-alignItems
1、stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度。
2、flex-start:左上方开始,并与左上方对齐
3、flex-end:左下方开始,并与左下方对齐
4、center:左控件的中间开始,并与中心线水平对齐
5、baseline: 控件中的文字向上对齐
详细对应的属性如下:
1、stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度。
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
app:alignItems=“stretch”>
<TextView
android:layout_width=“80dp”
android:layout_height=“80dp”
android:gravity=“center”
android:padding=“5dp”
android:text=“stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度。” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
</com.google.android.flexbox.FlexboxLayout>
2、flex-start:左上方开始,并与左上方对齐
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
app:alignItems=“flex_start”>
<TextView
android:layout_width=“80dp”
android:layout_height=“wrap_content”
android:gravity=“center”
android:padding=“5dp”
android:text=“flex-start:左上方开始,并与左上方对齐” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#06ff02”
android:gravity=“center”
android:text=“textview3” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#02c8ff”
android:gravity=“center”
android:text=“textview4” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#022cff”
android:gravity=“center”
android:text=“textview5” />
</com.google.android.flexbox.FlexboxLayout>
3、flex-end:左下方开始,并与左下方对齐
效果图中:应为flex-end(在这里就不换图了,明白就好)
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
app:alignItems=“flex_end”>
<TextView
android:layout_width=“80dp”
android:layout_height=“wrap_content”
android:gravity=“center”
android:padding=“5dp”
android:text=“flex-end:左下方开始,并与左下方对齐” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#06ff02”
android:gravity=“center”
android:text=“textview3” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#02c8ff”
android:gravity=“center”
android:text=“textview4” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#022cff”
android:gravity=“center”
android:text=“textview5” />
</com.google.android.flexbox.FlexboxLayout>
4、center:左控件的中间开始,并与中心线水平对齐
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
app:alignItems=“center”>
<TextView
android:layout_width=“80dp”
android:layout_height=“wrap_content”
android:gravity=“center”
android:padding=“5dp”
android:text=“center:左控件的中间开始,并与中心线水平对齐” />
<TextView
android:id=“@+id/textview1”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ff0202”
android:gravity=“center”
android:text=“textview1” />
<TextView
android:id=“@+id/textview2”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#ffc402”
android:gravity=“center”
android:text=“textview2” />
<TextView
android:id=“@+id/textview3”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#06ff02”
android:gravity=“center”
android:text=“textview3” />
<TextView
android:id=“@+id/textview4”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#02c8ff”
android:gravity=“center”
android:text=“textview4” />
<TextView
android:id=“@+id/textview5”
android:layout_width=“80dp”
android:layout_height=“80dp”
android:background=“#022cff”
android:gravity=“center”
android:text=“textview5” />
</com.google.android.flexbox.FlexboxLayout>
5、baseline: 控件中的文字向上对齐
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
app:alignItems=“baseline”>
<TextView
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数Android工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Android移动开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加V获取:vip204888 (备注Android)
最后笔者收集整理了一份Flutter高级入门进阶资料PDF
以下是资料目录和内容部分截图
里面包括详细的知识点讲解分析,带你一个星期入门Flutter。还有130个进阶学习项目实战视频教程,让你秒变大前端。
一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
android:gravity=“center”
android:text=“textview5” />
</com.google.android.flexbox.FlexboxLayout>
5、baseline: 控件中的文字向上对齐
<?xml version="1.0" encoding="utf-8"?><FrameLayout 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”>
<com.google.android.flexbox.FlexboxLayout
android:id=“@+id/flexbox_layout”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
app:alignItems=“baseline”>
<TextView
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数Android工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Android移动开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
[外链图片转存中…(img-8PPHC9BX-1712623022781)]
[外链图片转存中…(img-WvAPAJxP-1712623022782)]
[外链图片转存中…(img-nQkGfZeA-1712623022782)]
[外链图片转存中…(img-tc0YTVBe-1712623022783)]
[外链图片转存中…(img-xgnvTX85-1712623022783)]
[外链图片转存中…(img-RUfO4aWl-1712623022783)]
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加V获取:vip204888 (备注Android)
[外链图片转存中…(img-NGLQko8L-1712623022784)]
最后笔者收集整理了一份Flutter高级入门进阶资料PDF
以下是资料目录和内容部分截图
[外链图片转存中…(img-8NBA6XUt-1712623022784)]
[外链图片转存中…(img-MI4Ygg3f-1712623022785)]
里面包括详细的知识点讲解分析,带你一个星期入门Flutter。还有130个进阶学习项目实战视频教程,让你秒变大前端。
[外链图片转存中…(img-auq9aSqL-1712623022785)]
一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
[外链图片转存中…(img-SSHcQWQ8-1712623022785)]