Android开发之ImageView文本组件的…
2013-12-30 20:37
127 查看
1,将我们的图片复制到res下边的drawable-hdpi文件夹下边
2,修改res下边的layout下边的xml文件
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10px"
android:text="图片视图引用" />
<ImageView
android:id="@+id/img1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30px"
android:maxHeight="50px"
android:maxWidth="50px"
android:src="@drawable/view"/>
</RelativeLayout>
相关文章推荐
- Android开发之TextView文本组件的…
- deviceOne 开发--gridview模版里面的imageview设置为-1,ios图片显示不全,AndroidOK
- 【Android游戏开发之七】(游戏开发中需要的样式)再次剖析游戏开发中对SurfaceView中添加组件方案!
- android 开发:使得TextView文本左右两边都对齐--解决中英文对齐问题。
- Android开发:用getDrawingCache方法获取ImageView中的图像需要注意的问题 本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http:/
- Android开发教程--设置ImageView图片的显示比例
- Android开发万能圆角ImageView
- android开发圆形Imageview图标实现
- Android开发之-- SubsamplingScaleImageView加载长图并实现手势放大缩放
- Android客户端开发即WebView组件的使用详解
- Android开发之自定义圆角矩形图片ImageView的实现 - Jamy Cai
- Android开发:ImageView上绘制旋转圆环(透明度不同的旋转圆环,利用canvas.drawArc实现)
- Android程序开发之动态设置ImageView的亮度
- Android开发之ImageView ScaleType属性
- Android 分享两个你学习android 平台开发必须碰到的几个知识点的组件【天气预报、日期】View 组件 推荐
- Android开源项目——自定义圆形图片组件CircularImageView
- Android开发中自定义View设定到FrameLayout布局中实现多组件显示
- 图片视图(ImageView)——Mars Android开发视频教程之第一季第十一集(重)
- 【Android游戏开发之七】(游戏开发中需要的样式)再次剖析游戏开发中对SurfaceView中添加组件方案!
- Android应用程序开发之图片操作(一)——Bitmap,surfaceview,imageview,Canvas