Verzeichnis suchen
android Manifest Manifest.permission Manifest.permission_group android.accessibilityservice AccessibilityService android.accounts Account android.app NotificationManager android.bluetooth BluetoothAdapter BluetoothClass BluetoothClass.Device BluetoothClass.Device.Major BluetoothClass.Service BluetoothDevice BluetoothServerSocket BluetoothSocket android.content SharedPreferences android.database.sqlite SQLiteCursorDriver SQLiteOpenHelper android.graphics Bitmap android.location LocationListener Geocoder GpsStatus GpsStatus.Listener GpsStatus.NmeaListener GpsSatellite android.media AudioFormat AsyncPlayer AudioRecord AudioRecord.OnRecordPositionUpdateListener ThumbnailUtils AudioManager android.net TrafficStats MailTo LocalSocket android.os AsyncTask AsyncTask.Status CountDownTimer Message MessageQueue HandlerThread android.text Html android.util JsonWriter android.view ContextMenu ContextMenu.ContextMenuInfo Display ViewManager View ViewStub ViewTreeObserver ViewParent WindowManager GestureDetector Gravity MenuInflater ScaleGestureDetector SoundEffectConstants android.view.inputmethod InputConnection InputMethod InputMethodSession BaseInputConnection InputMethodManager android.widget AbsListView AbsListView.LayoutParams AbsListView.OnScrollListener AbsListView.RecyclerListener AbsoluteLayout AbsoluteLayout.LayoutParams AbsSeekBar AbsSpinner AdapterView AdapterView.AdapterContextMenuInfo AdapterView.OnItemLongClickListener AdapterView.OnItemSelectedListener AdapterView.OnItemClickListener AnalogClock BaseAdapter BaseExpandableListAdapter Button CheckBox CheckedTextView Checkable Chronometer Chronometer.OnChronometerTickListener CompoundButton CompoundButton.OnCheckedChangeListener CursorAdapter CursorTreeAdapter DatePicker DatePicker.OnDateChangedListener DialerFilter DigitalClock EditText Filter Filter.FilterListener Filter.FilterResults ExpandableListAdapter ExpandableListView.OnChildClickListener ExpandableListView.OnGroupClickListener ExpandableListView.OnGroupCollapseListener ExpandableListView.OnGroupExpandListener Filterable Gallery Gallery.LayoutParams GridView GridLayout GridLayout.Alignment RadioGroup ImageView ImageView.ScaleType HorizontalScrollView ImageButton ImageSwitcher FilterQueryProvider ListAdapter ListView MediaController MultiAutoCompleteTextView MultiAutoCompleteTextView.CommaTokenizer MultiAutoCompleteTextView.Tokenizer QuickContactBadge RadioButton RatingBar RatingBar.OnRatingBarChangeListener RelativeLayout RemoteViews ResourceCursorAdapter ResourceCursorTreeAdapter Scroller ScrollView SearchView SearchView.OnCloseListener SearchView.OnQueryTextListener SearchView.OnSuggestionListener SeekBar SeekBar.OnSeekBarChangeListener SimpleAdapter SimpleAdapter.ViewBinder SimpleCursorAdapter SimpleCursorAdapter.CursorToStringConverter SimpleCursorAdapter.ViewBinder SimpleCursorTreeAdapter SimpleCursorTreeAdapter.ViewBinder SimpleExpandableListAdapter SlidingDrawer SlidingDrawer.OnDrawerCloseListener SlidingDrawer.OnDrawerOpenListener SlidingDrawer.OnDrawerScrollListener Spinner SpinnerAdapter WrapperListAdapter TabHost TabHost.TabSpec TextView TimePicker TimePicker.OnTimeChangedListener Toast TableLayout TableLayout.LayoutParams TableRow TableRow.LayoutParams TabWidget TextSwitcher ToggleButton TwoLineListItem VideoView ViewAnimator ViewFlipper ViewSwitcher ViewSwitcher.ViewFactory ZoomButtonsController ZoomButtonsController.OnZoomListener ZoomButton ZoomControls dalvik.system DexFile
Figuren


ResourceCursorTreeAdapter

版本:Android 3.1 r1

 

结构

继承关系

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        定义了一组中最后一个子视图的布局文件的资源标识

 

public ResourceCursorTreeAdapter (Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout)

构造函数。    

参数

context    和正在运行的SimpleListItemFactory关联的ListView的上下文

                            cursor       数据库游标

                            collapsedGroupLayout     定义了收缩组的视图布局文件的资源标识

expandedGroupLayout    定义了展开组的视图布局文件的资源标识

childLayout                定义了除了最后一个的所有子视图的布局文件的资源标识

 

public ResourceCursorTreeAdapter (Context context, Cursor cursor, int groupLayout, int childLayout)    

构造函数。    

参数

context    和正在运行的SimpleListItemFactory关联的ListView的上下文

                            cursor       数据库游标

                            groupLayout    为所有组定义了视图布局文件的资源标识

expandedGroupLayout             定义了展开组的视图布局文件的资源标识

childLayout   定义了除了最后一个的所有子视图的布局文件的资源标识

 

公共方法

         protected abstract View newChildView (Context context, Cursor cursor, boolean     isLastChild, ViewGroup parent)

         创建一个新的子元素视图并持有指向数据的游标cursor

                   参数

                            context           应用程序上下文对象

                            cursor             获取数据的游标对象,它已经移动到正确的位置

                            IsLastChild   子元素是否处于组中的最后一个

                            parent      新视图(View)所依附于的父对象。

                   返回值

                            新创建的视图

 

         protected abstract View newGroupView (Context context, Cursor cursor, boolean isExpanded, ViewGroup parent)

         创建一个新的组视图并持有组中指向数据的游标cursor

                   参数

                            context           应用程序上下文对象

                            cursor             获取数据的游标对象,它已经移动到正确的位置

                            isExpanded   该组是否展开状态

                            parent       新视图(View)所依附于的父对象。

                   返回值

                            新创建的视图

 


Vorheriger Artikel: Nächster Artikel: