加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

widget.ResourceCursorTreeAdapter

发布时间:2022-03-16 13:17:55 所属栏目:MySql教程 来源:互联网
导读:本章内容是android.widget.ResourceCursorTreeAdapter,版本为Android 3.1 r1,为Android 3.0 r1新增API,翻译来自xiaoQLu,欢迎访问它的博客:http://www.cnblogs.com/xiaoQLu,再次感谢xiaoQLu !期待你一起参与Android API的翻译,联系我over140@gmail.
       本章内容是android.widget.ResourceCursorTreeAdapter,版本为Android 3.1 r1,为Android 3.0 r1新增API,翻译来自"xiaoQLu",欢迎访问它的博客:"http://www.cnblogs.com/xiaoQLu",再次感谢"xiaoQLu" !期待你一起参与Android API的翻译,联系我over140@gmail.com。
 
       声明
    欢迎转载,但请保留文章原始出处:)
      农民伯伯:http://over140.blog.51cto.com/
    Android中文翻译组:http://goo.gl/6vJQl
 
结构
继承关系
public abstract classt ResourceCursorTreeAdapter extends CursorTreeAdapter
 
 java.lang.Object
android.widget.BaseExpandableListAdapter
android.widget.CursorTreeAdapter
android.widget.ResourceCursorTreeAdapter
 
直接子类
SimpleCursorTreeAdapter
 
类概述
一个简单的可扩展的ExpandableListAdapter,通过在XML文件来创建views。你可以指定一个定义了views外观的XML文件。
 
构造函数
public ResourceCursorTreeAdapter (Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout)
构造函数。
参数
context 和正在运行的SimpleListItemFactory关联的ListView的上下文
cursor 数据库游标
collapsedGroupLayout 定义了收缩组的视图布局文件的资源标识
expandedGroupLayout 定义了展开组的视图布局文件的资源标识
childLayout 定义了除了最后一个的所有子视图的布局文件的资源标识
lastChildLayout 定义了一组中最后一个子视图的布局文件的资源标识
 
公共方法
protected abstract View newChildView (Context context, Cursor cursor, boolean isLastChild, ViewGroup parent)
创建一个新的子元素视图并持有指向数据的游标cursor。
参数
context 应用程序上下文对象
cursor 获取数据的游标对象,它已经移动到正确的位置
IsLastChild 子元素是否处于组中的最后一个
parent 新视图(View)所依附于的父对象。

(编辑:云计算网_泰州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读