代码改变世界

阅读排行榜

android上画方框

2012-09-17 10:08 by omgee, 1876 阅读, 收藏,
摘要: 来自zxing开源码 public Rect getFramingRect() { if (framingRect == null) { if (camera == null) { return null; } Point screenResolution = configManager.getScreenResolution(); int width = screenResolution.x * 3 / 4; /* if (width < MIN_FRAME_WIDTH) { width = MIN_FRAME... 阅读全文

今时不同往日:VS2010十大绝技让VS6叹服

2011-01-06 15:38 by omgee, 1735 阅读, 收藏,
摘要: 今时不同往日:VS2010十大绝技让VS6叹服“从来只有新人笑,有谁听到旧人哭,程序员的心,好难懂~~”自从微软最新的Visual Studio 2010发布之后,昔日备受程序员们追捧的开发工具Visual Studio 6最近却备受冷落,总是哼唱着这首歌来排解自己的郁闷。它总是抱怨说:“程序员们都是些喜新厌旧的家伙,一看到新的Visual Studio 2010发布了,就把我Visual Studio 6忘在了一旁,它Visual Studio 2010有什么好的?它VS2010能做的事情,我VS6照样都能做!”在一旁的VS2010听不下去了,反击道:“不是那些程序员喜新厌旧,而是我VS20 阅读全文

常见sql的error解决方法

2013-08-23 09:43 by omgee, 1673 阅读, 收藏,
摘要: 1.sqlserver 2008 login failed: error 18456这是很可能是因为你没有选择sql and windows登录的模式导致sql server的用户登录失败解决方法:用windows Authentication账户登录进去,右击(对象管理器object Explorer)中你的数据库实例(databse instance)--properties--security->Server authentication,选中SqlServer and Windows Authentication mode.之后到重启sql服务服务就可以了 阅读全文

AlertDialog弹出退出对话框和图片对话框

2012-04-20 14:43 by omgee, 1328 阅读, 收藏,
摘要: 一.先建好一个dialog protected void dialog() { AlertDialog.Builder builder = new Builder(LinkMap.this); builder.setMessage("确定要退出吗?"); builder.setTitle("提示"); builder.setPositiveButton("确认", new android.content.DialogInte... 阅读全文

android自定义透明dialog菜单

2012-05-29 15:59 by omgee, 1304 阅读, 收藏,
摘要: 制作菜单时,我用了dialog加载一个view的方式,但是总是会出现一些黑色阴影,消除方法其实很简单;首先在style.xml文件里面定义一下dialgo样式,如果没有就新建一下style.xml<style name="Dialog" parent="android:style/Theme.Dialog"> <item name="android:windowNoTitle">true</item> <item name="android:windowFrame"> 阅读全文
上一页 1 2 3 4 5 6 7 ··· 12 下一页