Android TextView和ImageView简单说明
Android TextView和ImageView简单说明
发布时间:2016-12-28 来源:查字典编辑
摘要:复制代码代码如下:相信看到这个标签的时候大家都明白了把!复制代码代码如下:android:drawableLeft=""android:dr...

复制代码 代码如下:

<?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了!

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新安卓软件开发学习
热门安卓软件开发学习
编程开发子分类