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>

更多相关文章

  1. Android(安卓)SDK 2.0安装、配置图文教程
  2. 视频号转发朋友圈升级!大屏展示,Android(安卓)灰测
  3. 如何打造光影?插画人物脸部光影画法!
  4. 如何临摹动漫人物?临摹绘画人物动漫教学!
  5. 如何画好动漫人物构图?2人到36人的环状构图参考
  6. 人物手部怎么画?手部画法入门教程
  7. 超可爱Q版人物表情怎么画?可爱Q版小人表情练习!
  8. 多人构图时如何画?三人人物构图教程!
  9. 超可爱Q版人物怎么画?Q版人物动态画法素材!

随机推荐

  1. PHP实现微信支付(jsapi支付)和退款(无需
  2. ThinkPHP实现微信支付(jsapi支付)流程教
  3. 使用 Docker 安装 Zabbix,并配置自定义监
  4. uni-app组件-应用简单快速上线
  5. 轮播图,xhr
  6. 完善课堂的案例,将右侧布局实现
  7. C++基础知识一
  8. 仿PHP中文网首页部分布局
  9. 鼠标悬停,向前和向后翻页,实例演示 xhr对
  10. 轮播图:1: 实现鼠标悬停时自动停止播放,