手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >Android TextView和ImageView简单说明
Android TextView和ImageView简单说明
摘要:复制代码代码如下:相信看到这个标签的时候大家都明白了把!复制代码代码如下: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了!

【Android TextView和ImageView简单说明】相关文章:

Android adb的常用命令

android textview 显示html方法解析

Android用户界面开发之:TextView的使用实例

android panellistview 圆角实现代码

android 照相功能的简单实例

android ListView自动滚动方法

android TextView设置中文字体加粗实现方法

Android GridView的使用

Android实现隐藏状态栏和标题栏

Android 开机启动慢的原因分析

精品推荐
分类导航