上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页
摘要: From :http://www.cnblogs.com/bravestarrhu/archive/2012/05/02/2479461.htmlAndroid四大基本组件分别是Activity,Service服务,Content Provider内容提供者,BroadcastReceiver广播接... 阅读全文
posted @ 2015-01-26 20:33 n1rAy 阅读(222) 评论(0) 推荐(0) 编辑
摘要: intent://scan/#Intent;scheme=appname://appname/【频道】/【id】;package=com.appname.package;end http://m.chuanbang.com/wear/12969 首先做成HTML的页面,页面内容格式如下: <a hr 阅读全文
posted @ 2015-01-26 20:31 n1rAy 阅读(2436) 评论(0) 推荐(0) 编辑
摘要: android:lines="2" android:ellipsize="end"显示两行,多余部分…显示textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线textView.getPaint().se... 阅读全文
posted @ 2014-12-09 18:20 n1rAy 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: 最近刚接触IntelliJ这个工具,用了几天,很多操作都不太熟。之前一直用Eclipse,猛的一用这个工具还真有点不习惯。但是这个工具有些方面确实比较优秀,比如javascript自动补全功能、html页面编写功能等,相比于其他IDE工具就会好很多。下面是一些关于本工具的快捷键。但有些不是太常用,仅... 阅读全文
posted @ 2014-12-08 21:13 n1rAy 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 不废话,先上代码:ArrayList col = new ArrayList(); System.out.println("Initial size: " + col.size()); for(int i = 0; i 里的类型是Integer,我传入一个int的应该可以自动实现autoboxi... 阅读全文
posted @ 2014-12-05 10:39 n1rAy 阅读(5441) 评论(0) 推荐(2) 编辑
摘要: eclipse->window->preference->java->code styple->code template->Code->New Java files点击 Edit${filecomment}${package_declaration}/*** @author duanlang* ... 阅读全文
posted @ 2014-11-28 10:29 n1rAy 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 1、获取当前程序版本名我们可以在AndroidManifest.xml中设置程序的版本号等,如android:versionName="1.0",那如果想在代码中获取这个版本号呢,可以用如下方法(这些修改版本号时只需要修改AndroidManifest.xml中的设置,不用修改代码了):/** ... 阅读全文
posted @ 2014-11-25 20:03 n1rAy 阅读(4630) 评论(0) 推荐(0) 编辑
摘要: /* * 文件名(可选),如 CodingRuler.java * * 版本信息(可选),如:@version 1.0.0 * * 版权申明(开源代码一般都需要添加),如:Copyright (C) 2010-2013 SINA Corporation. */package com.xxx.co... 阅读全文
posted @ 2014-11-25 10:35 n1rAy 阅读(648) 评论(0) 推荐(0) 编辑
摘要: https://github.com/etsy/AndroidStaggeredGrid 用的github上面提供瀑布流,继承于abslistview,回收机制不错,并且提供了OnScrollListener来监听滑动时间。然后想加一个下拉刷新功能,下面分享一下研究的最终结果。Java代码:pack... 阅读全文
posted @ 2014-11-24 16:58 n1rAy 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: ImageView.setBackgroundColor(android.graphics.Color.parseColor("#ffffff"));ImageView.setBackgroundColor(Color.RED);ImageView.setBackgroundColor(Color.... 阅读全文
posted @ 2014-11-23 17:54 n1rAy 阅读(2572) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页