http://www.androidren.com/index.php?qa=301&qa_1=android的imageview中的android-src和android-background的区别
有下面几个不同点:
1.src是前景foreground。background是后景background。
2.src是显示内容,background是背景。
3.bac...
分类:
移动开发 时间:
2015-02-13 23:42:37
阅读次数:
314
相信对于Android初学者,对于Android中的动画效果一定很感兴趣,今天为大家总结一下刚刚学到的属性动画案例。 首先和一般的Android应用一样,我们先建一个工程,为了方便,我们的布局文件中就只添加一个ImageView和button按钮,代码如下: 下面是我们act...
分类:
移动开发 时间:
2015-02-13 23:39:05
阅读次数:
253
public class TestDemo extends Activity {
private ImageView img1;
private int screenWidth;
private int screenHeight;
/** Called when the activity is first created. */
...
分类:
移动开发 时间:
2015-02-13 16:37:21
阅读次数:
133
setBackgroundDrawable和setBackgroundResource的区别很多网友不知道View类提供的setBackgroundDrawable和setBackgroundResource的区别是什么,同时Android View类很多子类比如TextView、ImageView...
分类:
移动开发 时间:
2015-02-13 14:39:18
阅读次数:
178
需要ImageView显示圆形图片做法如下public static Bitmap toRoundCorner(Bitmap bitmap, float ratio) { System.out.println("图片是否变成圆形模式了+++++++++++++"); Bi...
分类:
移动开发 时间:
2015-02-12 16:01:57
阅读次数:
219
Bitmap?image?=?((BitmapDrawable)imageView.getDrawable()).getBitmap();
分类:
移动开发 时间:
2015-02-11 16:51:35
阅读次数:
164
在tableViewCell上有一张可以点击的图片,通过Target-Action给图片的imageView添加了点击事件.但是,在点击图片实现放大效果的时候,图片的背景cell变灰,再次点击其它cell进行页面跳转时,协议方法中得indexPath是刚才点击图片的背景cell的indexPath,...
分类:
其他好文 时间:
2015-02-10 18:39:30
阅读次数:
140
android中ImageView的ScaleType属性 ScaleType的值分别代表的意义:ImageView是Android中的基础图片显示控件,该控件有个重要的属性是ScaleType,该属性用以表示显示图片的方式,共有8种取值 ScaleType.CENTER::图片大小为原始大小,.....
分类:
移动开发 时间:
2015-02-10 10:32:22
阅读次数:
177
TextView添加图片本文地址:http://blog.csdn.net/caroline_wendyAndroid UI设计时,经常需要在文字周围添加图片。比较简单的方法是直接使用Layout把View组合到一起:<ImageView
android:layout_width=“wrap_content"
android:layout_height="wrap_conten...
分类:
移动开发 时间:
2015-02-10 09:17:33
阅读次数:
195
VICMAImageViewhttps://github.com/vitoziv/VICMAImageViewChange image view's content mode with your animation!修改 imageView 的contentMode属性就有动画效果!Installa...
分类:
其他好文 时间:
2015-02-08 23:11:02
阅读次数:
259