WEB开发网
开发学院手机开发Android 开发 android listView 中存在editView chetxBox等点击... 阅读

android listView 中存在editView chetxBox等点击事件处理

 2010-05-24 16:32:00 来源:WEB开发网   
核心提示:*/protected abstract ViewHolder createHolder(View v);/*** Binds the data from user’s object to the holder* @param h The holder that shall represent the data obj

*/

protected abstract ViewHolder createHolder(View v);

/**

* Binds the data from user’s object to the holder

* @param h The holder that shall represent the data object.

*/

protected abstract void bindHolder(ViewHolder h);

}

// ————————————————————-

// E X A M P L E

// ————————————————————-

// LAYOUT FILE

xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:orientation="horizontal"

android:gravity="center_vertical"

>

android:layout_weight="1"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

>

android:src="@drawable/globe2_32x32"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:maxWidth="32px"

android:maxHeight="32px"

>

//————————————————————?

// ACTIVITY

//————————————————————?

package com.o1.android.view;

import java.util.ArrayList;

import java.util.List;

import android.app.ListActivity;

import android.content.Context;

import android.graphics.Bitmap;

import android.graphics.BitmapFactory;

import android.os.Bundle;

import android.view.View;

import android.widget.ImageView;

import android.widget.TextView;

import com.o1.android.view.ClickableListAdapter;

import com.o1.android.view.ClickableListAdapter.ViewHolder;

/**

* An example how to implement the ClickableListAdapter for a list view layout containing

上一页  1 2 3 4 5 6 7  下一页

Tags:android listView 存在

编辑录入:coldstar [复制链接] [打 印]
赞助商链接