源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Android TextView和ImageView简单说明

  • 时间:2022-05-14 17:39 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Android TextView和ImageView简单说明
[u]复制代码[/u] 代码如下:
<?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>   
相信看到这个标签的时候大家都明白了把!
[u]复制代码[/u] 代码如下:
        android:drawableLeft=""         android:drawableRight=""         android:drawableTop=""         android:drawableBottom=""
四个标签,android:drawablePadding=""可以设置边框大小,我觉得很使用,不用想以前那么用RelativeLayout中去light或者right了!
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部