展会信息港展会大全

Android TextView和ImageView犀利组合
来源:互联网   发布日期:2015-11-25 22:13:26   浏览:2001次  

导读:[html] 嬀栀琀洀氀崀 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http:...

[html]

[html]

<?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="match_parent"

android:orientation="vertical" >

<TextView

android:layout_height="wrap_content"

android:layout_width="wrap_content"

android:drawableLeft="@drawable/icon"

android:text="@string/app_name"

/>

</LinearLayout>

相信看到这个标签的时候大家都明白了把!

android:drawableLeft=""

android:drawableRight=""

android:drawableTop=""

android:drawableBottom=""

四个标签,android:drawablePadding=""可以设置边框大小,我觉得很使用,不用想以前那么用RelativeLayout中去light或者right了!

赞助本站

人工智能实验室

相关热词: android开发 教程

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港