上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 51 下一页
摘要: 今天在网上找了些资料,做了一个图片左右滚动的Demo,类似幻灯片播放,同时,图片带倒影效果,运行效果如下图: 实现方式是重写Gallery,使用自定义的Gallery来实现这一效果,工程一共三个文件,一个Activity,一个自定义的Gallery,还有就是一个适配器ImageAdapter,直接上代码:ScrollGallery.javapublic class ScrollGallery extends Gallery { private Camera mCamera = new Camera(); //左右图片倾斜的角度 privat... 阅读全文
posted @ 2013-08-11 22:27 GreyWolf 阅读(233) 评论(0) 推荐(0) 编辑
摘要: In my recent post onHow To Choose the Best XML Parser for Your iPhone Project, Saliom from the comments section suggested writing a post on how to use an XML library to read and write XML documents, create your own objects based on the documents, and perform XPath queries.This XML tutorial will show 阅读全文
posted @ 2013-08-11 18:52 GreyWolf 阅读(266) 评论(0) 推荐(0) 编辑
摘要: There are a lot of options when it comes to parsing XML on the iPhone. The iPhone SDK comes with two different libraries to choose from, and there are several popular third party libraries available such as TBXML, TouchXML, KissXML, TinyXML, and GDataXML. How is a developer to choose the best XML pa 阅读全文
posted @ 2013-08-11 18:50 GreyWolf 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 该篇文章是说明在Android手机或平板电脑中如何实现截取当前屏幕的功能,并把截取的屏幕保存到SDCard中的某个目录文件夹下面。实现的代码如下: /** * 获取和保存当前屏幕的截图 */ private void GetandSaveCurrentImage() { //1.构建Bitmap WindowManager windowManager = getWindowManager(); Display display = windowManager.getDefaultDisplay(); ... 阅读全文
posted @ 2013-08-09 14:08 GreyWolf 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: /******************************************************************************************* NSArray *******************************************************************************************/ /*---------------------------创建数组------------------------------*/ //NSArray *array = [NSArray alloc] init. 阅读全文
posted @ 2013-08-08 09:53 GreyWolf 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://android-developers.blogspot.com/2011/09/androids-http-clients.htmlMost network-connected Android apps will use HTTP to send and receive data. Android includes two HTTP clients: HttpURLConnection and Apache HTTP Client. Both support HTTPS, streaming uploads and downloads, configurable time 阅读全文
posted @ 2013-07-31 16:15 GreyWolf 阅读(196) 评论(0) 推荐(0) 编辑
摘要: https://kb.askmonty.org/en/building-mariadb-on-mac-os-x-using-homebrew/Work has been done to provide MariaDB via theHomebrewpackage manager, which has been described as the missing package manager for Mac OS X. Once you have installed Homebrew (with the command linebrew), all you have to do is:brew 阅读全文
posted @ 2013-07-31 10:28 GreyWolf 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 用 Mac 系统有一段时间了,这里记录一下自己遇到的需要终端命令解决的问题。网络环境绑定了原先机器的 MAC 地址,由于特殊原因,先把新机器的网卡地址改成原先那台。在终端输入sudo ifconfig en0 ether 00:00:00:00:00:00其中 en0 是你的第一块网卡(以太网卡,非无线),后面的 12 个 0 是要改成的目标网卡地址,输入以后会要求你输入管理员密码,别忘了给自己的账号先设定管理员密码,确认后当前机器的网卡地址会临时性生效,当重启后网卡地址又恢复成机器本身的。局域网环境本来应该很和谐的,可是每年这时候应届毕业生入司都会潜规则般的破坏宿舍的局域网环境,使用 ARP 阅读全文
posted @ 2013-07-30 21:52 GreyWolf 阅读(567) 评论(0) 推荐(0) 编辑
摘要: http接口测试浏览器插件:Chrome: https://chrome.google.com/webstore/detail/chrome-poster/cdjfedloinmbppobahmonnjigpmlajcdFireFox: http://code.google.com/p/poster-extension/downloads/list火狐浏览器: http://files.cnblogs.com/greywolf/poster-3.2.0.xpi.zip谷歌浏览器:http://files.cnblogs.com/greywolf/chrome-poster.crx.zip 阅读全文
posted @ 2013-07-30 11:58 GreyWolf 阅读(1084) 评论(0) 推荐(0) 编辑
摘要: 【IT168技术】Android在桌面上生成快捷方式有两种情况,一种是直接在桌面直接生成;一种是长按桌面,在弹出的快捷菜单中生成。 谈谈在桌面上直接生成。个人觉得这个比较爽快,既然都是快捷方式了干嘛还要再隐藏一层呢?当然喜欢桌面干净的就比较喜欢第二个了。 第一个是通过广播(Broadcast)的形式向Luncher发送请求生成快捷方式的。 在网上找到关于这方面的注册信息。 可以看出,要在桌面上创建快捷方式就需要权限了: android:permission="com.android.launcher.permission.INSTALL_SHORTCUT。 所以在我们的manife. 阅读全文
posted @ 2013-07-29 16:24 GreyWolf 阅读(296) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 51 下一页