码迷,mamicode.com
首页 >  
搜索关键字:smallest screen widt    ( 3710个结果
Android 碎屏效果 (Crack Screen,击碎屏幕)
本文介绍一个好玩的App   如图: 实现思路:在一个透明的Activity上用一个自定义View,然后在View上画.9的碎玻璃图片,加上音效。然后过一段时间消失。 主要用一个postInvalidate();方法,用一个集合去装手指触摸过的地方,在touch事件中调用postInvalidate();方法进行视图重新绘制。 需要注意的是,这里的播放音效和上篇博客 Andr...
分类:移动开发   时间:2014-12-19 09:18:28    阅读次数:232
《图解CSS3》笔记5 媒体与Responsive设计
Media Type: 媒体类型 CSS2中的属性,用来指定页面渲染的设备的类型,常用的有:all、screen、print(打印),此外还有针对投影、盲人的多种设备类型引用方式:1. 标签: 属性名media="screen";2. @import方式: @import url...
分类:Web程序   时间:2014-12-19 01:53:06    阅读次数:155
Storyboards Tutorial (三)
这一节主要介绍segues,static table view cells 和Add Player screen 以及a game picker screen。Introducing Segues开启Main.storyboard拖拉一个Bar Button Item到Players窗口导航栏的右侧...
分类:其他好文   时间:2014-12-18 16:46:18    阅读次数:280
Android 度量单位
单位注释px(像素)每个像素对应手机上的一个点,在不同设备上1px表示的长度不一定相同screen size(屏幕尺寸)指手机对角线的长度,如4.7英寸resolution(分辨率)指屏幕的像素数目,如480*320,同样尺寸的屏幕分辨率越高越清晰dpi(像素密度)每英寸的像素数,英寸是长度单位,1...
分类:移动开发   时间:2014-12-17 22:20:14    阅读次数:161
移动端页面宽度自适应
<!--js--> <scripttype="text/javascript"> if(/Android(\d+\.\d+)/.test(navigator.userAgent)){ varversion=parseFloat(RegExp.$1); if(version>2.3){ varphoneScale=parseInt(window.screen.width)/640; document.write(‘<metaname="viewport"content="wi..
分类:移动开发   时间:2014-12-17 18:57:31    阅读次数:203
ShowModal 和 Show 的区别
Show: Use Show to set the form Visible property to true and to bring the form to the front of other forms on the screen. ShowModal: Use ShowModal to show a form as a modal form.  A modal form is ...
分类:其他好文   时间:2014-12-17 18:28:10    阅读次数:219
HIbernate 级联删除
在一对多的情形下如 Cinema - > Screen;1、正常在不设置级联(casCade)的情况下 删除一的一方(Cinema)会报外键关联 异常 Screen 中包含Cinema的外键;这个时候可以先取出Cinema中的所有Screen集合后在删除所有的Screen, 完毕后在删除 Cinem...
分类:Web程序   时间:2014-12-17 18:02:30    阅读次数:206
secureCRT + screen + vim远程登录utf-8乱码问题解决
问题一:使用secureCRT远程登录机器,使用vim查看程序,是乱码解决办法:在secureCRT的设置里面,把字符编码设置为utf-8在~/.vimrc里加入一行setencoding=utf-8,则能正确显示。原则是vim的encoding和文件的编码一致termencoding和secureCRT的设置一致。问题二:使用screen,在..
分类:系统相关   时间:2014-12-16 19:27:52    阅读次数:296
Model View Controller
On the iPhone or iPod touch, a modal view controller takes over the entire screen. This is the defaultbehavior and the only possibility on these devic...
分类:其他好文   时间:2014-12-16 15:00:53    阅读次数:154
UIButton上使用UIEdgeInsetsMake让title跟图片对齐
UIButton上使用UIEdgeInsetsMake让title跟图片对齐默认情况下,不设置的效果,都使居中现实,button为150*150使用以下设置后:[selfsetTitleEdgeInsets:UIEdgeInsetsMake(0.0,-backGroundImag.size.widt...
分类:其他好文   时间:2014-12-16 14:51:26    阅读次数:130
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!