1、创建activity界面布局.xml
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:cacheColorHint="#00000000" />
2、自定义列表的适配器adapter
package com.example.t;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Bitmap;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
public class MyListviewAdapter extends BaseAdapter {
private LayoutInflater inflater = null;
private ArrayLi
最后
以上就是辛勤香菇最近收集整理的关于android listview点击选中,简单实现ListView选中后的效果的全部内容,更多相关android内容请搜索靠谱客的其他文章。
发表评论 取消回复