自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (3)
  • 收藏
  • 关注

原创 85ViewTreeObserver.addOnGlobalLayoutListener(listener)

有时候需要在onCreate方法中知道某个View组件的宽度和高度等信息,而直接调用View组件的getWidth()、getHeight()、getMeasuredWidth()、getMeasuredHeight()、getTop()、getLeft()等方法是无法获取到真实值的,只会得到0。这是因为View组件布局要在onResume回调后完成。下面提供实现方法,onGlobalLayout

2015-02-02 17:22:42 690

原创 GridView属性集合 drawSelectorOnTop

android:fastScrollEnabled="true"是让ListView出现快速滚动的按钮,一开始,我的记录只有十条,我在拉动的时候都不见出现快速滚动,后来才发现,原因是数据不多的原因,只要数据足够多,才会自动出现的。 还有一个属性:android:drawSelectorOnTopWhen set to true, the selector wil

2015-02-02 15:16:35 869

转载 84Android drawable-nodpi 的作用

把一些不能被拉伸的图片放在 drawable-nodpi 中,此图片将不会被放大,以原大小显示。看下图:drawable-nodpi 的作用" title="Android drawable-nodpi 的作用" style="margin:0px; padding:0px; border:0px; list-style:none">这两个图片被放到了dra

2015-02-02 15:09:25 675

原创 Displaying Bitmap小结

Google的关于展示位图的课程学习完毕了。主要的内容主要包括了下面的几个部分:1.高效的加载大图(Loading Large Bitmaps Efficiently)2.非UI线程处理Bitmap(Processing Bitmaps Off the UI Thread)3.缓存Bitmaps(Caching Bitmaps)(LruCache和DiskLruCache,

2015-02-02 14:42:06 590

原创 Displaying Bitmaps in Your UI

This lesson brings together everything from previous lessons, showing you how to load multiple bitmaps intoViewPager and GridView components using a background thread and bitmap cache, while dealing

2015-02-02 14:40:16 603

原创 Managing Bitmap Memory

In addition to the steps described in Caching Bitmaps, there are specific things you can do to facilitate garbage collection and bitmap reuse. The recommended strategy depends on which version(s) of

2015-02-02 14:39:38 618

原创 Caching Bitmaps

Loading a single bitmap into your user interface (UI) is straightforward, however things get more complicated if you need to load a larger set of images at once. In many cases (such as with components

2015-02-02 14:39:06 550

原创 Processing Bitmaps Off the UI Thread

The BitmapFactory.decode* methods, discussed in the Load Large Bitmaps Efficiently lesson, should not be executed on the main UI thread if the source data is read from disk or a network location (

2015-02-02 14:38:29 679

原创 Loading Large Bitmaps Efficiently

Images come in all shapes and sizes. In many cases they are larger than required for a typical application user interface (UI). For example, the system Gallery application displays photos taken using

2015-02-02 14:36:54 647 1

原创 Displaying Bitmaps Efficiently

Learn how to use common techniques to process and loadBitmap objects in a way that keeps your user interface (UI) components responsive and avoids exceeding your application memory limit. If you’re

2015-02-02 14:35:57 721

Android手机管家项目

Android手机管家项目,很简单,也很粗糙,http://mmdystu.bmob.cn/,欢迎大家和我交流。

2015-01-14

Android组件设计思想

Android组件设计思想,陈述了Activity,Service,BroadcastReceiver,Content Provider为什么这样设计,总之,一切皆组件。

2015-01-05

Volley框架

http://blog.csdn.net/chenfuduo_loveit/article/details/41773607 Android官方的文档,根据官方的文档写出来的代码。

2014-12-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除