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 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
更多精彩
赞助商链接