Android(安卓)TextView图文混排
16lz
2021-12-04
Android TextView图文混排
<?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" tools:context=".MainActivity"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@mipmap/user1"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="张三" android:textSize="30dp" android:layout_marginTop="100dp"/> LinearLayout> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="我的介绍"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="大家好,我是张三。" android:textSize="20dp" android:textColor="@color/purple_700"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/tv_1"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/tv_2"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="我的朋友:"/> <LinearLayout android:layout_width="match_parent" android:layout_height="100dp" android:orientation="horizontal"> <TextView android:layout_width="100dp" android:layout_height="wrap_content" android:text="人物2" android:layout_weight="1" android:layout_marginTop="80dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="match_parent" android:scaleType="fitXY" android:layout_weight="1" android:src="@mipmap/user5"/> <TextView android:layout_width="100dp" android:layout_height="wrap_content" android:text="人物3" android:layout_weight="1" android:layout_marginTop="80dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="match_parent" android:scaleType="fitXY" android:layout_weight="1" android:src="@mipmap/user3" /> <TextView android:layout_width="100dp" android:layout_height="match_parent" android:text="人物4" android:layout_weight="1" android:layout_marginTop="80dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@mipmap/user4" android:layout_weight="1" android:scaleType="fitXY" /> <TextView android:layout_width="100dp" android:layout_height="match_parent" android:text="人物5" android:layout_weight="1" android:layout_marginTop="80dp" /> <ImageView android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@mipmap/user1" android:layout_weight="1" android:scaleType="fitXY" /> LinearLayout>LinearLayout>
更多相关文章
- Android(安卓)SDK 2.0安装、配置图文教程
- 视频号转发朋友圈升级!大屏展示,Android(安卓)灰测
- 如何打造光影?插画人物脸部光影画法!
- 如何临摹动漫人物?临摹绘画人物动漫教学!
- 如何画好动漫人物构图?2人到36人的环状构图参考
- 人物手部怎么画?手部画法入门教程
- 超可爱Q版人物表情怎么画?可爱Q版小人表情练习!
- 多人构图时如何画?三人人物构图教程!
- 超可爱Q版人物怎么画?Q版人物动态画法素材!