上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
自从计算机游戏出现以来,程序员就不断地想办法来更精确地模拟现实世界。就拿乒乓游戏为例子(译者:Pong—被誉为电子游戏的祖先,有幸见过一次:),能见到祖先做的游戏感觉真是爽啊,想看的可以到FTP上下载“地球故事”就可以看到了:),游戏中有一个象征性的小方块(球)和两支拍子,游戏者需要在恰当的时... Read More
posted @ 2015-10-23 13:07 带狗狗带 Views(584) Comments(0) Diggs(0) Edit
前提条件:已经安装python,命令行支持bash在bash_profile中添加function ccolor {python /Users/xirtam/Documents/tools/ccolor.py $1 $2 $3}编写其中的python文件import sysprint(hex(int... Read More
posted @ 2015-08-11 17:35 带狗狗带 Views(581) Comments(0) Diggs(0) Edit
在系统关于中查询mac的usb的厂商ID如id为0x2717执行echo 0x2717 >> ~/.android/adb_usb.ini即可 Read More
posted @ 2015-08-10 15:31 带狗狗带 Views(239) Comments(0) Diggs(0) Edit
测试代码,String data,String key.SecretKeySpec signingKey = new SecretKeySpec(key.getBytes(), HMAC_SHA1_ALGORITHM); Mac mac = Mac.getInstance(HM... Read More
posted @ 2015-08-04 15:14 带狗狗带 Views(547) Comments(0) Diggs(0) Edit
修改宽度wheel = (NumberPicker) findViewById(R.id.info_wheel_province);wheel.setLayoutParams(new LinearLayout.LayoutParams(deviceSize.x >> 1, LinearLayout.... Read More
posted @ 2015-08-02 17:13 带狗狗带 Views(3947) Comments(0) Diggs(0) Edit
被这个问题耽误了一个多小时。。。直接上解决方案,参考红色部分。private void initViews() { wheel = (NumberPicker) findViewById(R.id.info_wheel_province); wheelCity = (Nu... Read More
posted @ 2015-08-02 15:57 带狗狗带 Views(910) Comments(0) Diggs(0) Edit
转载自http://www.apkbus.com/forum.php?mod=viewthread&tid=244752&extra=&_dsign=0b699c42在此之前,相信大家都已经对Android API所提供的布局方式非常熟悉了。也许在接触Android的时候都有过这样的想法,如果可以按... Read More
posted @ 2015-07-22 15:21 带狗狗带 Views(1283) Comments(0) Diggs(0) Edit
以LeanCloud的推送sdk为例。我的项目中使用了android-async-http库和fastjson的库,然后LeanCloud的的sdk中也使用了这两个库,但是版本有点低。处理方式: compile 'com.nineoldandroids:library:2.4.0+' comp... Read More
posted @ 2015-07-21 11:28 带狗狗带 Views(838) Comments(0) Diggs(0) Edit
转载自http://www.cnblogs.com/xilinch/p/4444833.html 最近在看了许多关于dp-px,px-dp,sp-px,px-sp之间转化的博文,过去我比较常用的方式是: 1 //转换dip为px 2 public static int convertDipOrPx... Read More
posted @ 2015-07-16 11:29 带狗狗带 Views(263) Comments(0) Diggs(0) Edit
遇到一个问题,自定义的Actor在使用batch.draw时,其他Actor设置的透明影响到了这个Actor处理方法为在自定义Actor中 draw方法中 绘制前,加入Color color = batch.getColor(); batch.setColor(color.r, col... Read More
posted @ 2015-07-12 15:08 带狗狗带 Views(387) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页