返回
顶部

修改密码

Android TextView和ImageView犀利组合

+1

-1

收藏

+1

-1

点赞0

评论0

[html] [html] 相信看到这个标签的时候大家都明白了把! android:drawableLeft="" android:drawableRight="" android:drawableTop="" android:drawableBottom=""四个标签,android:drawablePadding=""可以设置边框大小,我觉…
[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了!

扫一扫在手机打开

评论
已有0条评论
0/150
提交
热门评论
相关推荐
今日要闻
换一批
热点排行