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
上一篇:C++文件逐字节对比


下一篇:Qt视频播放器