2014年5月8日

使用内部(com.android.internal)和隐藏(@hide)API[第1部分,介绍]

摘要: 本文翻译自http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/#more-79Android有两类API在SDK中不能使用。第一类就是位于包com.android.interna... 阅读全文

posted @ 2014-05-08 17:31 veins 阅读(340) 评论(0) 推荐(0) 编辑

2014年5月7日

Android 开源框架ActionBarSherlock 和 ViewPager 仿网易新闻客户端

摘要: 大家都知道Android的ActionBar是在3.0以上才有的,那么在3.0以下呢,google并没有给我提供在3.0以下支持ActionBar的包,但是外国的大牛JakeWharton实现了在3.0以下使用ActionBar,JakeWharton这位大牛是ActionBarSherlock,A... 阅读全文

posted @ 2014-05-07 19:58 veins 阅读(274) 评论(0) 推荐(0) 编辑

Android 开源框架ViewPageIndicator 和 ViewPager 仿网易新闻客户端Tab标签

摘要: 之前用JakeWharton的开源框架ActionBarSherlock和ViewPager实现了对网易新闻客户端Tab标签的功能,ActionBarSherlock是在3.0以下的机器支持ActionBar的功能,有兴趣的可以看看开源框架ActionBarSherlock 和 ViewPager ... 阅读全文

posted @ 2014-05-07 19:54 veins 阅读(231) 评论(0) 推荐(0) 编辑

如何在Eclipse中浏览Android源码

摘要: Google的AndroidSDK包括了android.jar,这个Jar文件包含了Android公有API类文件。他们还提供了一个Eclipse插件,这使得开始Android上的开发相当简单。然而,你却不能找到androidSrc.jar这个Jar文件,所以当你想要在Eclipse中看一下Andr... 阅读全文

posted @ 2014-05-07 19:12 veins 阅读(194) 评论(0) 推荐(0) 编辑

Android下拉刷新的实现---pulltorefresh

摘要: 作者对使用方法介绍的很简单。详见:https://github.com/chrisbanes/Android-PullToRefresh/wiki/Quick-Start-Guide我这里写一下自己的一些收获:1. 导入PullToRefresh库,方法详见http://developer.andr... 阅读全文

posted @ 2014-05-07 16:52 veins 阅读(305) 评论(0) 推荐(0) 编辑

2014年5月6日

Android PopupWindow的使用技巧

摘要: PopupWindow是Android上自定义弹出窗口,使用起来很方便。PopupWindow的构造函数为public PopupWindow(View contentView, int width, int height, boolean focusable)contentView为要显示的vie... 阅读全文

posted @ 2014-05-06 21:54 veins 阅读(197) 评论(0) 推荐(0) 编辑

扩大Eclipse的内存

摘要: 做项目的时候,MyEclipse提示内存不足。错误提示大概如下:MyEclipse has detected that less than 5% of the 64MB of PermGen (Non-heap memory) space remains. It is strongly recomm... 阅读全文

posted @ 2014-05-06 20:00 veins 阅读(775) 评论(0) 推荐(0) 编辑

2014年5月5日

Android Animation动画(很详细)

摘要: http://www.360doc.com/content/13/0102/22/6541311_257754535.shtml 阅读全文

posted @ 2014-05-05 18:42 veins 阅读(169) 评论(0) 推荐(0) 编辑

2014年4月29日

无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?

摘要: E: 无法获得锁 /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?解 决方法一:#:ps -aux (列出进程,形式如)root 5765 ... 阅读全文

posted @ 2014-04-29 19:28 veins 阅读(287) 评论(0) 推荐(0) 编辑

2014年4月28日

Android 随记

摘要: 1.在fragment中使用menu菜单,需要在onCreate()方法里面添加语句setHasOptionsMenu(true);2.set a bitmap from resourceBitmap bm = BitmapFactory.decodeResource(getResources(),... 阅读全文

posted @ 2014-04-28 21:15 veins 阅读(205) 评论(0) 推荐(0) 编辑

导航