Android API Chinese (55) -- ListAdapter

Source: Internet
Author: User

 

Preface

This chapter content is android. widget. ListAdapter, version for Android 2.2 r1, translated from "de rod", welcome to visit his blog: http://sparkrico.javaeye.com, thank you again "de rod "! I look forward to your participation in Android Chinese API translation, contact me over140@gmail.com.

 

Statement

You are welcome to repost, but please keep the original source of the article :)

Blog Garden: http://www.cnblogs.com/

Android Chinese translation group: http://code.taobao.org/project/view/404/

 

Body

I. Structure

Public interface ListAdapter extends Adapter

Android. widget. ListAdapter

 

Direct subclass

ArrayAdapter <T>, BaseAdapter, CursorAdapter, HeaderViewListAdapter, ResourceCursorAdapter, SimpleAdapter, SimpleCursorAdapter, WrapperListAdapter

 

Ii. Overview

The extended Adapter is a bridge between ListView and data. Usually the data comes from the cursor, but it is not necessary. ListView can display all data contained in ListAdapter.

    

 

Iii. Public Methods

Public abstract booleanAreAllItemsEnabled ()

Are all items available in ListAdapter? If yes, all projects are selectable and can be clicked with the mouse.

Return Value

Returns true if all items are available

 

Public abstract booleanIsEnabled (Int position)

If the specified position is not a separator Project (an isolated project is an unselectable project that cannot be clicked with the mouse), the system returns the true result. If the location is invalid, the result is uncertain. In this case, an ArrayIndexOutOfBoundsException (out of bounds) exception will be thrown.

Parameters

PositionProject Index

Return Value

Returns true if this project is not an isolated project.

 

Iv. Supplement

Article Selection

Android adapter system

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.