购物车

Model

public class CartModel {
    private ICartPresenter iCartPresenter;

    public CartModel(ICartPresenter iCartPresenter) {
        this.iCartPresenter = iCartPresenter;
    }

    public void getCartData(final String cartUrl) {
        //获取数据
        OkHttp3Util.doGet(cartUrl, new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
                Log.e(cartUrl,e.getLocalizedMessage());
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {
                if (response.isSuccessful()){
                    final String json = response.body().string();

                    //返回数据到主线程
                    CommonUtils.runOnUIThread(new Runnable() {
                        @Override
                        public void run() {
                            iCartPresenter.getSuccessCartJson(json);
                        }
                    });

                }
            }
        });

    }
}

Presenter

public class CartPresenter implements ICartPresenter{

    private final CartModel cartModel;
    private IMainActivity iMainActivity;

    public CartPresenter(IMainActivity iMainActivity) {
        this.iMainActivity = iMainActivity;
        cartModel = new CartModel(this);
    }

    public void getCartData(String cartUrl) {
        cartModel.getCartData(cartUrl);

    }

    @Override
    public void getSuccessCartJson(String json) {
        //回调给view
        iMainActivity.getSuccessCartData(json);
    }
}

IPresenter(接口)

public interface ICartPresenter {
    void getSuccessCartJson(String json);
}

View

IView(接口)

public interface IMainActivity {
    void getSuccessCartData(String json);
}

二级列表自定义高度

public class CartExpanableListview extends ExpandableListView {
    public CartExpanableListview(Context context) {
        super(context);
    }

    public CartExpanableListview(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public CartExpanableListview(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int height = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE>>2,MeasureSpec.AT_MOST);

        super.onMeasure(widthMeasureSpec, height);
    }
}

适配器

public class MyAdapter extends BaseExpandableListAdapter{
    private Handler handler;
    private Context context;
    private List<CartBean.DataBean> listGroup;
    private List<List<CartBean.DataBean.ListBean>> listChilds;
    public MyAdapter(Context context, List<CartBean.DataBean> listGroup, List<List<CartBean.DataBean.ListBean>> listChilds, Handler handler) {
        this.context = context;
        this.listGroup = listGroup;
        this.listChilds = listChilds;
        this.handler = handler;
    }

    @Override
    public int getGroupCount() {
        return listGroup.size();
    }

    @Override
    public int getChildrenCount(int groupPosition) {
        return listChilds.get(groupPosition).size();
    }

    @Override
    public Object getGroup(int groupPosition) {
        return listGroup.get(groupPosition);
    }

    @Override
    public Object getChild(int groupPosition, int childPosition) {
        return listChilds.get(groupPosition).get(childPosition);
    }

    @Override
    public long getGroupId(int groupPosition) {
        return groupPosition;
    }

    @Override
    public long getChildId(int groupPosition, int childPosition) {
        return childPosition;
    }

    @Override
    public boolean hasStableIds() {
        return true;
    }

    @Override
    public View getGroupView(final int groupPosition, boolean b, View view, ViewGroup viewGroup) {
        GroupHolder holder;
        if (view == null){
            view = View.inflate(context, R.layout.group_item_layout,null);
            holder = new GroupHolder();

            holder.check_group = view.findViewById(R.id.check_group);
            holder.text_group = view.findViewById(R.id.text_group);

            view.setTag(holder);

        }else {
            holder = (GroupHolder) view.getTag();
        }

        final CartBean.DataBean dataBean = listGroup.get(groupPosition);
        //赋值
        holder.check_group.setChecked(dataBean.isGroupChecked());
        holder.text_group.setText(dataBean.getSellerName());

        //设置点击事件
        holder.check_group.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //2.1改变当前一级选中的状态
                dataBean.setGroupChecked(! dataBean.isGroupChecked());
                //2.2根据当前一级的状态,改变该组里面二级列表的状态
                changeChildState(groupPosition,dataBean.isGroupChecked());
                //2.3通过判断所有的一级组是否选中,来决定是否全选选中
                changeAllState(isAllGroupChecked());
                //2.4发送价格个数量:
                sendPriceAndCount();
                //刷新适配器
                notifyDataSetChanged();
            }
        });

        return view;
    }

    /**
     * 根据所有一级列表是否选中,确定外面的全选是否选中
     * @param allGroupChecked
     */
    private void changeAllState(boolean allGroupChecked) {
        Message msg = Message.obtain();
        msg.what =1;
        msg.obj = allGroupChecked;
        handler.sendMessage(msg);

    }

    /**
     * 所有的一级列表是否选中
     * @return
     */
    private boolean isAllGroupChecked() {
        for (int i=0;i<listGroup.size();i++){

            if (! listGroup.get(i).isGroupChecked()){
                return false;
            }
        }

        return true;
    }

    /**
     * 根据当前一级列表的状态,,,改变当前组中所有二级列表的状态
     * @param groupPosition
     * @param groupChecked
     */
    private void changeChildState(int groupPosition, boolean groupChecked) {
        List<CartBean.DataBean.ListBean> listBeans = listChilds.get(groupPosition);

        for (int i=0;i<listBeans.size();i++){
            listBeans.get(i).setSelected(groupChecked? 1:0);
        }

    }

    @Override
    public View getChildView(final int groupPosition, int childPosition, boolean b, View view, ViewGroup viewGroup) {
        ChildHolder holder;
        if (view == null){
            view = View.inflate(context, R.layout.child_item_layout,null);
            holder = new ChildHolder();

            holder.text_add = view.findViewById(R.id.text_add);
            holder.text_num = view.findViewById(R.id.text_num);
            holder.text_jian = view.findViewById(R.id.text_jian);
            holder.text_title = view.findViewById(R.id.text_title);
            holder.text_price = view.findViewById(R.id.text_price);
            holder.image_good = view.findViewById(R.id.image_good);
            holder.check_child = view.findViewById(R.id.check_child);

            view.setTag(holder);

        }else {
            holder = (ChildHolder) view.getTag();
        }

       //赋值
        final CartBean.DataBean.ListBean listBean = listChilds.get(groupPosition).get(childPosition);

        holder.text_num.setText(listBean.getNum()+"");//......注意
        holder.text_price.setText("¥"+listBean.getPrice());
        holder.text_title.setText(listBean.getTitle());
        //listBean.getSelected().....0false,,,1true
        //设置checkBox选中状态
        holder.check_child.setChecked(listBean.getSelected()==0? false:true);

        /*implementation 'com.github.bumptech.glide:glide:4.4.0'
        annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'*/
        Glide.with(context).load(listBean.getImages().split("\\|")[0]).into(holder.image_good);

        //设置点击事件
        holder.check_child.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //3.1点击改变当前子条目状态:....实际是改变当前的数据,,,刷新适配器
                listBean.setSelected(listBean.getSelected() ==0? 1:0);
                //3.2发送价钱和数量给界面显示
                sendPriceAndCount();
                //3.3判断当前子条目是否选中
                if (listBean.getSelected() == 1){
                    //判断一下当前组中所有的子条目是否全部选中
                    if (isAllChildSelected(groupPosition)){
                        //如果全部选中改变一下当前组的状态
                        changeGroupState(groupPosition,true);
                        //.确定是否改变全选
                        changeAllState(isAllGroupChecked());
                    }

                }else {
                    //如果没有选中改变一下当前组的状态
                    changeGroupState(groupPosition,false);
                    //.确定是否改变全选
                    changeAllState(isAllGroupChecked());
                }

                //刷新适配器
                notifyDataSetChanged();
            }
        });

        //加号:
        holder.text_add.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //改变当前位置 中商品的数量
                listBean.setNum(listBean.getNum()+1);

                //判断一下是否选中...计算价格数量
                if (listBean.getSelected() == 1){
                    sendPriceAndCount();
                }

                //
                notifyDataSetChanged();
            }
        });

        //减号
        holder.text_jian.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                int num = listBean.getNum();

                if (num == 1){
                    return;
                }

                listBean.setNum(num -1);

                //判断是否选中
                if (listBean.getSelected() == 1){
                    sendPriceAndCount();
                }

                notifyDataSetChanged();
            }
        });

        return view;
    }

    /**
     * 改变当前组的状态
     * @param groupPosition
     * @param b
     */
    private void changeGroupState(int groupPosition, boolean b) {


        listGroup.get(groupPosition).setGroupChecked(b);

    }

    /**
     * 判断当前组中所有的二级是否选中
     * @param groupPosition
     * @return
     */
    private boolean isAllChildSelected(int groupPosition) {
        List<CartBean.DataBean.ListBean> listBeans = listChilds.get(groupPosition);

        for (int i=0;i<listBeans.size();i++){
            if (listBeans.get(i).getSelected() == 0){

                return false;
            }
        }

        return true;
    }

    @Override
    public boolean isChildSelectable(int groupPosition, int childPosition) {
        return true;//子条目是否可以点击
    }

    /**
     * 设置是否全选
     * @param checked
     */
    public void setIfCheckAll(boolean checked) {

        for (int i = 0;i<listGroup.size();i++){
            CartBean.DataBean dataBean = listGroup.get(i);
            //设置组上面的checkBox是否选中
            dataBean.setGroupChecked(checked);

            List<CartBean.DataBean.ListBean> listBeans = dataBean.getList();
            for (int j = 0; j< listBeans.size(); j++){
                //改变是否选中的状态...数据应该变的是
                listBeans.get(j).setSelected(checked? 1:0);
            }

        }

        //计算价钱和数量并且发送到mainActivity显示
        sendPriceAndCount();

        //刷新适配器
        notifyDataSetChanged();

    }

    /**
     * 计算总价和数量,,,发送显示
     */
    private void sendPriceAndCount() {
        double price = 0;
        int count = 0;

        for (int i=0;i<listGroup.size();i++){
            List<CartBean.DataBean.ListBean> listBeans = listGroup.get(i).getList();
            for (int j = 0;j<listBeans.size();j++){

                CartBean.DataBean.ListBean listBean = listBeans.get(j);
                if (listBean.getSelected()==1){

                    price += listBean.getPrice()* listBean.getNum();
                    count += listBean.getNum();

                }
            }
        }

        CountPriceBean countPriceBean = new CountPriceBean(price, count);
        //显示到activity页面
        Message msg = Message.obtain();
        msg.what = 0;
        msg.obj = countPriceBean;
        handler.sendMessage(msg);

    }

    private class GroupHolder{
        CheckBox check_group;
        TextView text_group;
    }

    private class ChildHolder{
        CheckBox check_child;
        ImageView image_good;
        TextView text_title;
        TextView text_price;
        TextView text_jian;
        TextView text_num;
        TextView text_add;
    }
}

Activity

/**
 *1.点击全选:选中/未选中...调用适配器中的方法...myAdapter.setIsCheckAll(true);来设置所有的一级和二级是否选中,计算
 *
 * 2.一级列表的点击事件:
 *      2.1改变当前一级选中的状态...dataBean.setChoosed(! dataBean.isChoosed());
 *      2.2根据当前一级的状态,改变该组里面二级列表的状态....changeChilState(groupPosition,dataBean.isChoosed());
 *      2.3通过判断所有的一级组是否选中,来决定是否全选选中:...changeAllState(isAllGroupChecked());
 *      2.4发送价格个数量:...sendPriceAndCount();
 *      2.5刷新适配器
 * 3.二级列表点击事件:
 *      3.1点击改变当前子条目状态:...listBean.setChildChoosed(! listBean.isChildChoosed());//相反
 *      3.2发送价钱和数量给界面显示....sendPriceAndCount();
 *      3.3如果当前子条目是选中状态
 *          3.3.1选中
 *              判断一下当前组中所有的子条目是否全部选中:...isAllChildSelected(groupPosition)
 *              如果全部选中改变一下当前组的状态:...changGroupState(groupPosition,true);...确定是否改变全选changeAllState(isAllGroupChecked());
 *          3.3.2未选中
 *              changGroupState(groupPosition,false);改变当前组false...是否全选changeAllState(isAllGroupChecked());
 */
public class MainActivity extends AppCompatActivity implements IMainActivity, View.OnClickListener {

    private CartExpanableListview expanableListview;
    private String cartUrl = "https://www.zhaoapi.cn/product/getCarts?uid=3004";
    private CartPresenter cartPresenter;
    private Gson gson;
    private MyAdapter myAdapter;
    private CheckBox check_all;
    private TextView text_total;
    private TextView text_buy;

    private Handler handler = new Handler(){
        @Override
        public void handleMessage(Message msg) {
            if (msg.what == 0){
                CountPriceBean countPriceBean = (CountPriceBean) msg.obj;

                //设置
                text_total.setText("合计:¥"+countPriceBean.getPrice());
                text_buy.setText("去结算("+countPriceBean.getCount()+")");
            }else  if (msg.what == 1){//改变全选
                boolean flag = (boolean) msg.obj;

                check_all.setChecked(flag);
            }
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        check_all = findViewById(R.id.check_all);
        text_total = findViewById(R.id.text_total);
        text_buy = findViewById(R.id.text_buy);
        expanableListview = findViewById(R.id.expanable_listview);
        //去掉默认的指示器
        expanableListview.setGroupIndicator(null);

        cartPresenter = new CartPresenter(this);
        gson = new Gson();

        //全选:...点击事件
        check_all.setOnClickListener(this);
    }

    @Override
    protected void onResume() {
        super.onResume();

        //请求数据
        cartPresenter.getCartData(cartUrl);

    }

    @Override
    public void getSuccessCartData(String json) {
        //解析数据
        CartBean cartBean = gson.fromJson(json, CartBean.class);

        //一个是一级标题的数据
        List<CartBean.DataBean> listGroup = cartBean.getData();

        //所有子条目的数据
        List<List<CartBean.DataBean.ListBean>> listChilds = new ArrayList<>();
        for (int i=0;i<listGroup.size();i++){
            listChilds.add(listGroup.get(i).getList());
        }

        //设置适配器
        myAdapter = new MyAdapter(MainActivity.this, listGroup, listChilds,handler);
        expanableListview.setAdapter(myAdapter);

        //展开所有
        for (int i=0;i<listGroup.size();i++){
            expanableListview.expandGroup(i);
        }
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.check_all:
                myAdapter.setIfCheckAll(check_all.isChecked());

                break;
        }
    }
}

Application

public class DashApplication extends Application {

    private static Context context;
    private static Handler handler;
    private static int mainId;
    public static boolean isLoginSuccess;//是否已经登录的状态


    @Override
    public void onCreate() {
        super.onCreate();

        //关于context----http://blog.csdn.net/lmj623565791/article/details/40481055
        context = getApplicationContext();
        //初始化handler
        handler = new Handler();
        //主线程的id
        mainId = Process.myTid();


    }

    /**
     * 对外提供了context
     * @return
     */
    public static Context getAppContext() {
        return context;
    }

    /**
     * 得到全局的handler
     * @return
     */
    public static Handler getAppHanler() {
        return handler;
    }

    /**
     * 获取主线程id
     * @return
     */
    public static int getMainThreadId() {
        return mainId;
    }
}

Util

public class CommonUtils {
    public static final String TAG = "Dash";//sp文件的xml名称
    private static SharedPreferences sharedPreferences;

    /**
     * DashApplication.getAppContext()可以使用,但是会使用系统默认的主题样式,如果你自定义了某些样式可能不会被使用
     * @param layoutId
     * @return
     */
    public static View inflate(int layoutId) {
        View view = View.inflate(DashApplication.getAppContext(), layoutId, null);
        return view;
    }

    /**
     * dip---px
     *
     * @param dip 设备独立像素device independent px....1dp = 3px 1dp = 2px 1dp = 1.5px
     * @return
     */
    public static int dip2px(int dip) {
        //获取像素密度
        float density = DashApplication.getAppContext().getResources().getDisplayMetrics().density;
        //
        int px = (int) (dip * density + 0.5f);//100.6
        return px;

    }

    /**
     * px-dip
     *
     * @param px
     * @return
     */
    public static int px2dip(int px) {
        //获取像素密度
        float density = DashApplication.getAppContext().getResources().getDisplayMetrics().density;
        //
        int dip = (int) (px / density + 0.5f);
        return dip;

    }

    /**
     * 获取资源中的字符串
     * @param stringId
     * @return
     */
    public static String getString(int stringId) {
        return DashApplication.getAppContext().getResources().getString(stringId);
    }

    public static Drawable getDrawable(int did) {
        return DashApplication.getAppContext().getResources().getDrawable(did);
    }

    public static int getDimens(int id) {
        return DashApplication.getAppContext().getResources().getDimensionPixelSize(id);
    }

    /**
     * sp存入字符串类型的值
     * @param flag
     * @param str
     */
    public static void saveSp(String flag, String str) {
        if (sharedPreferences == null) {
            sharedPreferences = DashApplication.getAppContext().getSharedPreferences(TAG, DashApplication.getAppContext().MODE_PRIVATE);
        }
        SharedPreferences.Editor edit = sharedPreferences.edit();
        edit.putString(flag, str);
        edit.commit();
    }

    public static String getSp(String flag) {
        if (sharedPreferences == null) {
            sharedPreferences = DashApplication.getAppContext().getSharedPreferences(TAG, DashApplication.getAppContext().MODE_PRIVATE);
        }
        return sharedPreferences.getString(flag, "");
    }

    public static boolean getBoolean(String tag) {
        if (sharedPreferences == null) {
            sharedPreferences = DashApplication.getAppContext().getSharedPreferences(TAG, DashApplication.getAppContext().MODE_PRIVATE);
        }
        return sharedPreferences.getBoolean(tag, false);
    }

    public static void putBoolean(String tag, boolean content) {
        if (sharedPreferences == null) {
            sharedPreferences = DashApplication.getAppContext().getSharedPreferences(TAG, DashApplication.getAppContext().MODE_PRIVATE);
        }
        SharedPreferences.Editor edit = sharedPreferences.edit();
        edit.putBoolean(tag, content);
        edit.commit();
    }

    /**
     * 清除sp数据
     * @param tag
     */
    public static void clearSp(String tag) {
        if (sharedPreferences == null) {
            sharedPreferences = DashApplication.getAppContext().getSharedPreferences(TAG, DashApplication.getAppContext().MODE_PRIVATE);
        }
        SharedPreferences.Editor edit = sharedPreferences.edit();
        edit.remove(tag);
        edit.commit();
    }

    /**
     * 自己写的运行在主线程的方法
     * 如果是主线程,执行任务,否则使用handler发送到主线程中去执行
     *
     *
     * @param runable
     */
    public static void runOnUIThread(Runnable runable) {
        //先判断当前属于子线程还是主线程
        if (android.os.Process.myTid() == DashApplication.getMainThreadId()) {
            runable.run();
        } else {
            //子线程
            DashApplication.getAppHanler().post(runable);
        }
    }
}

依赖

compile 'com.squareup.okhttp3:okhttp:3.6.0'
    compile 'com.squareup.okio:okio:1.11.0'
    compile 'com.google.code.gson:gson:2.8.2'
    implementation 'com.github.bumptech.glide:glide:4.4.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'

布局

主布局

<ScrollView
        android:layout_above="@+id/linear_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <!--购物车的二级列表-->
            <com.dash.a18_shopping_cart.view.custom.CartExpanableListview
                android:id="@+id/expanable_listview"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

            </com.dash.a18_shopping_cart.view.custom.CartExpanableListview>

            <!--为你推荐-->
            <LinearLayout
                android:orientation="vertical"
                android:background="#00ff00"
                android:layout_width="match_parent"
                android:layout_height="500dp">
            </LinearLayout>
        </LinearLayout>
    </ScrollView>
    <LinearLayout
        android:id="@+id/linear_layout"
        android:layout_alignParentBottom="true"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="50dp">
        <CheckBox
            android:layout_marginLeft="10dp"
            android:button="@null"
            android:background="@drawable/check_box_selector"
            android:id="@+id/check_all"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
        <TextView
            android:id="@+id/text_total"
            android:text="合计:¥0.00"
            android:layout_weight="2"
            android:layout_width="0dp"
            android:layout_height="wrap_content" />

        <TextView
            android:text="去结算(0)"
            android:background="#ff0000"
            android:textColor="#ffffff"
            android:gravity="center"
            android:id="@+id/text_buy"
            android:layout_width="0dp"
            android:layout_weight="1"
            android:layout_height="match_parent" />
    </LinearLayout>

一级列表布局

<CheckBox
        android:button="@null"
        android:background="@drawable/check_box_selector"
        android:id="@+id/check_group"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <TextView
        android:layout_marginLeft="10dp"
        android:text="京东自营"
        android:id="@+id/text_group"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

二级列表布局

<CheckBox
        android:layout_centerVertical="true"
        android:id="@+id/check_child"
        android:button="@null"
        android:background="@drawable/check_box_selector"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <ImageView
        android:id="@+id/image_good"
        android:layout_centerVertical="true"
        android:layout_toRightOf="@+id/check_child"
        android:layout_marginLeft="10dp"
        android:layout_width="80dp"
        android:layout_height="80dp" />

    <TextView
        android:id="@+id/text_title"
        android:layout_toRightOf="@+id/image_good"
        android:layout_marginLeft="10dp"
        android:layout_alignTop="@+id/image_good"
        android:maxLines="2"
        android:minLines="2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <TextView
        android:id="@+id/text_price"
        android:layout_toRightOf="@+id/image_good"
        android:layout_marginLeft="10dp"
        android:layout_alignBottom="@+id/image_good"
        android:text="¥99.99"
        android:textColor="#ff0000"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <LinearLayout
        android:layout_alignParentRight="true"
        android:layout_alignBottom="@+id/image_good"
        android:orientation="horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <TextView
            android:id="@+id/text_jian"
            android:text="一"
            android:padding="5dp"
            android:background="@drawable/bian_kuang_line"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <TextView
            android:gravity="center"
            android:id="@+id/text_num"
            android:paddingLeft="10dp"
            android:paddingRight="10dp"
            android:background="@drawable/bian_kuang_line"
            android:layout_width="wrap_content"
            android:layout_height="match_parent" />

        <TextView
            android:id="@+id/text_add"
            android:text="十"
            android:padding="5dp"
            android:background="@drawable/bian_kuang_line"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

    </LinearLayout>
复选框子布局
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_checked="true" android:drawable="@drawable/shopping_cart_checked"/>
    <item android:state_checked="false" android:drawable="@drawable/shopping_cart_none_check"/>
    <item android:drawable="@drawable/shopping_cart_none_check"/>
</selector>
边框布局
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#ffffff" />

    <stroke
        android:width="0.1dp"
        android:color="#000000" />

</shape>


























  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值