建立一个.XML文件,名为:image_tab_bg.xml1 2 然后你要实现的图片ImageView的src设为:@drawable/image_tab_bg即可注意:不要设为ImageView的Background属性中;这样图片会被拉申ImageView中XML属性src和backgroun...
分类:
移动开发 时间:
2014-11-20 20:08:21
阅读次数:
246
任正非的讲话 2014-04-18 21:07:34| 分类: 默认分类 |举报 |字号 订阅 在大机会时代,千万不要机会主义,我们要有战略耐性。 消费者BG一定要坚持自己的战略,坚持自己的价值观,坚持自己已经明晰的道路与方法,稳...
分类:
其他好文 时间:
2014-11-19 22:29:54
阅读次数:
259
HTML基础1·HTML的基本格式 写注释的格式 2·body中的属性: Bgcolor 页面背景色 Text 文字颜色 Topmargin 上页边距 Leftmargin 左页边距 Rightmargin 右页边距 Bottomargin 下页边距 Background 背景壁纸(当遇到bg...
分类:
Web程序 时间:
2014-11-17 22:42:56
阅读次数:
281
[plain]viewplaincopyprint?http://apt.sw.be/redhat/el6/en/$ARCH/rpmforgehttp://archive.cs.uu.nl/mirror/dag.wieers/redhat/el6/en/$ARCH/rpmforgehttp://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el6/en/$ARCH/rpmforge#http://ftp.heanet.ie/pub/freshrpms/pub/..
分类:
其他好文 时间:
2014-11-12 18:04:42
阅读次数:
233
============问题描述============ 利用下面的代码读取到sd卡内的图片,显示出来
setBackgroundDrawable(newBitmapDrawable(BitmapFactory.decodeFile("/storage/sdcard/bg.jpg")));
然后进行...
分类:
移动开发 时间:
2014-11-12 13:21:40
阅读次数:
317
在HTML里只要涉及文件的地方(如超级链接、图片等)就会涉及绝对路径与相对路径的概念。1.绝对路径 绝对路径是指文件在硬盘上真正存在的路径。例如“bg.jpg”这个图片是存放在硬盘的“E:\book\网页布局代码\第2章”目录下,那么 “bg.jpg”这个图片的绝对路径就是“E:\book\网页布....
分类:
其他好文 时间:
2014-11-06 12:59:04
阅读次数:
210
把进程放到后台有两种方法1、cmmand &2、ctrl+z 暂停到后台查看后台服务 jobs把后台进程移到前台fg %2 工作号 恢复到前台后台服务继续执行bg %工作号[root@LocalWeb01 ~]# jobs 查看后台工作[1] Stopped top[2]- Stopped top[...
分类:
系统相关 时间:
2014-11-06 08:10:25
阅读次数:
224
cmstop-error.csshtml,body,head,div,p,a { margin: 0; padding: 0;}.body-bg { background-color: #dff1f4;}.main { width: 700px; overflow: h...
分类:
其他好文 时间:
2014-11-04 10:54:45
阅读次数:
295
ImageView中XML属性src和background的区别:
background会根据ImageView组件给定的长宽进行拉伸,而src就存放的是原图的大小,不会进行拉伸。src是图片内容(前景),bg是背景,可以同时使用。
此外:scaleType只对src起作用;bg可设置透明度,比如在ImageButton中就可以用android:scaleType控制图片的缩放方式,示...
分类:
移动开发 时间:
2014-11-03 19:30:46
阅读次数:
208
设置颜色,平铺图片[UIColorcolorWithPatternImage:[UIImagep_w_picpathNamed:@"bg_actionSheet_panel.png"]];
分类:
其他好文 时间:
2014-11-03 01:30:41
阅读次数:
107