博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
android将图片和文字水平排列
阅读量:6893 次
发布时间:2019-06-27

本文共 832 字,大约阅读时间需要 2 分钟。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version=
"1.0" 
encoding=
"utf-8"
?>
<LinearLayout xmlns:android=
"http://schemas.android.com/apk/res/android"
    
android:layout_width=
"match_parent"
    
android:layout_height=
"wrap_content"
    
android:orientation=
"horizontal"
    
android:gravity=
"center"
    
>
    
<ImageView 
        
android:id=
"@+id/imageView4_1_1"
        
android:layout_width=
"wrap_content"
        
android:layout_height=
"wrap_content"
        
android:src=
"@drawable/ic_launcher"
       
        
/>
    
<TextView 
        
android:id=
"@+id/textView4_1_1"
        
android:layout_width=
"match_parent"
        
android:layout_height=
"wrap_content"
        
android:text=
"textView"
        
        
/>
</LinearLayout>

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:orientation="horizontal"

    android:gravity="center"

 本文转自 matengbing 51CTO博客,原文链接:http://blog.51cto.com/matengbing/1882230

转载地址:http://rmkdl.baihongyu.com/

你可能感兴趣的文章
Nodejs日志管理log4js
查看>>
海康威视 - 萤石云开放平台 js 版
查看>>
关于分销平台
查看>>
jquery实用的一些方法
查看>>
质数方阵
查看>>
jQuery $.each用法
查看>>
C语言结构体指针成员强制类型转换
查看>>
基于域的无线安全认证方案
查看>>
Thread类常用方法
查看>>
路由重分布新技术实现多种路由协议不同网络间通信案例实操应用
查看>>
3月31日云栖精选夜读:数据科学咨询:想要转型毫无头绪?看了本文你不慌
查看>>
程序猿日记S01E03
查看>>
如何解决域名解析不生效问题?
查看>>
字符串指针修改问题
查看>>
通过JCONSOLE监控TOMCAT的JVM使用情况
查看>>
jquery editable plugin--点击编辑文字插件
查看>>
[Java] TreeMap、HashMap、LindedHashMap的区别
查看>>
MariaDB · 新特性 · 窗口函数
查看>>
thinkphp 3.2分布式数据库读写分离扩展阅读
查看>>
iOS流布局UICollectionView系列二——UICollectionView的代理方法
查看>>