Android_Loader/Animator

来源:互联网 发布:时间管理书籍 知乎 编辑:程序博客网 时间:2024/05/17 07:04





 
  日历系统中使用了CursorLoader;
  CursorLoader --> AsyncTaskLoader --> Loader --> Object;  A loader that queries the ContentResolver and returns a Cursor. This class implements the Loader protocol in a standard way for querying cursors, building on AsyncTaskLoader to perform the cursor query on a background thread so that it does not block the application's UI.
  LoaderManager --> Object;  Interface associated with an Activity or Fragment for managing one or more Loader instances associated with it. This helps an application manage longer-running operations in conjunction with the Activity or Fragment lifecycle; the most common use of this is with a CursorLoader, however applications are free to write their own loaders for loading other types of data.
  ImageManager --> Object;  This class is used to load images from the network and handles local caching for you.
  ImageManager.OnImageLoadedListener -- Object;   Listener interface for handling when the image for a particular URI has been loaded.





  Flip:
  AnimatorListenerAdapter实现Animator.AnimatorListener接口;
  



  GridView的动画:
  mGridLayout.addView(**);
  Animator mAnim=mLayoutTransition.getAnimator(***);
  mLayoutTransition.setAnimator(***);



  AsyncQueryHandler --> Handler -- Object.  A helper class to help make handling asynchronous ContentResolver queries easier.
  通过uri,增/删/改/查都可以。
  CursorLoader --> AsyncTaskLoader<D> --> Loader<D> -->Object.  A loader that queries the ContentResolver and returns a Cursor.
  只是查询。包括条件/字段 等查询。
  LoaderManager --> Object.  Interface associated with an Activity or Fragment for managing one or more Loader instances associated with it. This helps an application manage longer-running operations in conjunction with the Activity or Fragment lifecycle; the most common use of this is with a CursorLoader, however applications are free to write their own loaders for loading other types of data.
  AsynQueryHandler:Handler实现线程间数据传递。
  CursorLoader: Cursor对象进行线程间数据传递。
  AsynQueryHandler 和 CursorLoader都是调用mContentResolver.query()进行查询数据的。
  Cursor是一个随机的数据源。所有的数据都是通过下标取得。
  Cursor接口: This interface provides random read-write access to the result set returned by a database query.
  VideoView --> SurfaceView --> View --> Object.








原创粉丝点击