其他分享
首页 > 其他分享> > AndroidStudio_安卓原生开发_精美自定义多选控件_多选Spinner_MultiSpinner_拿来即用---Android原生开发工作笔记144

AndroidStudio_安卓原生开发_精美自定义多选控件_多选Spinner_MultiSpinner_拿来即用---Android原生开发工作笔记144

作者:互联网

    1.首先去定义该控件:MPopListView

package com.maddox.mmrrr1;

import android.app.AlertDialog;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.CheckBox;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.Nullable;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Maddox
 * 2021-11-30
 */
public class MPopListView extends LinearLayout {

    private Context mContext;

    private MFlowLayout flowLayout;

    private ImageView iv_arrow;

    private List<DataModel> allDatas;


    public MPopListView(Context context) {
        this(context, null);
    }

    public MPopListView(Context context, @N

标签:原生,控件,widget,多选,MPopListView,private,Context,import,android
来源: https://blog.csdn.net/lidew521/article/details/121808897