上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 一.Leaflet简介官方网站:http://leafletjs.com/官网上的api和例子大家多看看,多学习学习。Lefalet 是一个为建设移动设备友好的互动地图,而开发的现代的、开源的 JavaScript 库。它是由 Vladimir Agafonkin 带领一个专业贡献者团队开发,虽然代... 阅读全文
posted @ 2014-03-07 11:33 江海不系舟 阅读(19468) 评论(1) 推荐(2) 编辑
摘要: 将代码括号的折叠方式从function abc(){}变成function abc(){}打开 Setting-user,把setting-default里的文本全部复制过来。然后 将"brace_style": "collapse" 修改为"brace_style": "expand"再重新格式化,你发现变成了自己想要的格式了,哈哈。另外附上 github上设置的参数表https://github.com/einars/js-beautify#options最后附上 Jsformat的快捷键,ctrl+alt+f 阅读全文
posted @ 2014-02-27 14:35 江海不系舟 阅读(9745) 评论(3) 推荐(1) 编辑
摘要: 网上的资料很多,我收集整理学习下。我是下划线***## 我是标题我也是标题===ewq`着重`ewqe- 列表1- 列表2* 我也是+ 我也是1. 有序列表2. 有序列表```java //我是代码 int x=0; int y=x;```- 微博 :[@GGock](http://weibo.com/ggock) 链接的写法 对应的代码![](http://images.cnitblog.com/blog/378173/201401/101732527852.png)Item | Value--------- | -----Computer |... 阅读全文
posted @ 2014-01-10 16:39 江海不系舟 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 例子:XML 文件保存在res/drawable/gradient_box.xml: 下面这个 XML 把shape应用到view:在程序代码里获取shape,应用到viewResources res =getResources();Drawable shape = res.getDrawable(R.drawable.gradient_box);TextView tv =(TextView)findViewByID(R.id.textview);tv.setBackground(shape);例子 ... 阅读全文
posted @ 2014-01-06 09:36 江海不系舟 阅读(256) 评论(0) 推荐(0) 编辑
摘要: public boolean hasGPSDevice(Context context) { final LocationManager mgr = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); if ( mgr == null ) return false; final List providers = mgr.getAllProviders(); if ( providers == null ) ... 阅读全文
posted @ 2014-01-06 09:25 江海不系舟 阅读(491) 评论(0) 推荐(0) 编辑
摘要: ERROR/AndroidRuntime(803): Caused by: java.io.FileNotFoundException: res/drawable/title_bar_shadow.9.png 最后发现原来只要在res下直接建一个drawable目录然后将需要的图片考进去就可以了。更[title_bar_shadow.9.png]一点关系也没有。 阅读全文
posted @ 2014-01-03 08:35 江海不系舟 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: 查看项目下是否有libs文件夹,正常情况下其中应该有如果没有,在项目上右键 ->arcgis tools->convert to arcgis android project排除了上述原因,请往下看常见情况1:你是模拟器调试arcgis for android程序中包含地图(mapview),需要android 4.0以上模拟器支持,并且enable gpu,见下图。target 需要4.0以上,然后勾选 use host gpu如果你不能创建target 4.0以上版本模拟器,需要下载镜像,打开sdk manager,见下图下载sdk manager中4.0以上的这个system 阅读全文
posted @ 2013-12-19 09:02 江海不系舟 阅读(1895) 评论(0) 推荐(0) 编辑
摘要: 平时写android产品相关的东西接触比较少,于是找个例子学习下。众所周知,Apk文件是可以反编译的,虽然看不到代码,xml还是可见的。把百度地图android客户端反编译之后,来学习下它的AndroidMainfest.xml。Google为APK定义了两个关于版本属性:VersionCode和V... 阅读全文
posted @ 2013-12-18 11:04 江海不系舟 阅读(1942) 评论(0) 推荐(0) 编辑
摘要: 为什么要代码混淆? Android的安装文件是apk格式。APK是AndroidPackage的缩写。是由android sdk编译的工程打包生成的安装程序文件。 Apk其实是zip文件,但是后缀名被改成了.apk,通过解压就可以看到其中的文件。 Classes.dex和AndroidManifes... 阅读全文
posted @ 2013-12-17 09:43 江海不系舟 阅读(11536) 评论(1) 推荐(1) 编辑
摘要: 错误提示:java.lang.RuntimeException: Unable to start activity ComponentInfo{xx activity}: java.lang.RuntimeException: setOnItemClickListener cannot be used with a spinner.解决方法:用setOnItemSelectedListener代替setOnItemClickListener 阅读全文
posted @ 2013-12-09 09:23 江海不系舟 阅读(1399) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页