<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Melect的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Melect</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Melect]]></copyright><item><title><![CDATA[M1 Mac Java环境配置和IDEA下载安装使用]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/130627841</link><guid>https://blog.youkuaiyun.com/Melect/article/details/130627841</guid><author>Melect</author><pubDate>Fri, 12 May 2023 10:00:42 +0800</pubDate><description><![CDATA[Java环境安装和m1版macOS IDEA使用]]></description><category></category></item><item><title><![CDATA[查看CPU架构]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/127496315</link><guid>https://blog.youkuaiyun.com/Melect/article/details/127496315</guid><author>Melect</author><pubDate>Mon, 24 Oct 2022 17:01:38 +0800</pubDate><description><![CDATA[Android 通过adb shell命令 查看和适配CPU架构_Melect的博客-优快云博客_shell获取cpu架构]]></description><category></category></item><item><title><![CDATA[Android ViewPager+Fragment 懒加载]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/108733907</link><guid>https://blog.youkuaiyun.com/Melect/article/details/108733907</guid><author>Melect</author><pubDate>Tue, 22 Sep 2020 15:57:41 +0800</pubDate><description><![CDATA[Android ViewPager+Fragment 懒加载

在大部分app开发中经常会用到viewpager与fragment组合使用，预加载在不显示后一个fragment时也会进行初始化，

导致在数据量大时 出现不必要的耗时和资源；懒加载就是在fragment显示的时候才初始化当前可见的fragment，减少时间和资源；



直接作为Fragment基类使用


package com.lazyloading.base;


import android.content.Context;
imp.]]></description><category></category></item><item><title><![CDATA[Android 通过adb shell命令 查看和适配CPU架构]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/90903083</link><guid>https://blog.youkuaiyun.com/Melect/article/details/90903083</guid><author>Melect</author><pubDate>Wed, 05 Jun 2019 15:40:19 +0800</pubDate><description><![CDATA[进入cmd或者cmder中

adb shell
	cat /proc/cpuinfo
   (注意：cat后有一个空格)



目前AndroidCPU架构都在下表中了





如图



由此可知 我的架构是 AArch64

 然后直接找到 app 的 build.gradle 中的 ndk 字段添加 arm64-v8a就可以了
...]]></description><category></category></item><item><title><![CDATA[git 高频使用命令]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/82317837</link><guid>https://blog.youkuaiyun.com/Melect/article/details/82317837</guid><author>Melect</author><pubDate>Sun, 02 Sep 2018 18:42:02 +0800</pubDate><description><![CDATA[git init 【初始化一个git项目】

git status 【查看当前项目状态】

git add . 【提交变动到缓存区】

git commit -m &quot;我是注释&quot; 【提交代码】

git remote add origin &quot;远程库地址&quot; 【链接远程库】

git push -u origin master 【提交代码到远程服务器】

git checkout 要切换的分支名称 ...]]></description><category></category></item><item><title><![CDATA[Android 依赖大集合]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/81125760</link><guid>https://blog.youkuaiyun.com/Melect/article/details/81125760</guid><author>Melect</author><pubDate>Fri, 20 Jul 2018 08:51:56 +0800</pubDate><description><![CDATA[ 

在Android开发过程中，除了引入第三方依赖库，还存在很多依赖，在这里就贴一下Android开发过程中常用的依赖，方便日后使用。


ImageLoader的依赖：
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

 

Okhttp的依赖：
implementation 'co...]]></description><category></category></item><item><title><![CDATA[Fresco工具类]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80990637</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80990637</guid><author>Melect</author><pubDate>Tue, 10 Jul 2018 19:11:18 +0800</pubDate><description><![CDATA[Fresco是Facebook公司研发的一个开源图片加载框架本篇文章就不做描述了描述请看官网或者https://blog.youkuaiyun.com/melect/article/details/80586845简单易看 通俗易懂import android.net.Uri;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.f...]]></description><category></category></item><item><title><![CDATA[仿京东购物车 ExpandableListview]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80879510</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80879510</guid><author>Melect</author><pubDate>Mon, 02 Jul 2018 07:13:11 +0800</pubDate><description><![CDATA[首先是购物车的Fragment:public class ShopCarFragment extends BaseFragment&amp;lt;CartPresenter&amp;gt; implements ICartView, CarttAdapter.CheckInterface,        CarttAdapter.ModifyCountInterface {    @BindView(R.id.b...]]></description><category></category></item><item><title><![CDATA[仿京东分类 RecyclerView嵌套]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80879507</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80879507</guid><author>Melect</author><pubDate>Mon, 02 Jul 2018 07:04:23 +0800</pubDate><description><![CDATA[Fragment中：import android.support.v7.widget.DividerItemDecoration;import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import java.util.List;

import bu...]]></description><category></category></item><item><title><![CDATA[Retrofit、Rxjava2、Ok应用拦截器 工具类]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80824043</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80824043</guid><author>Melect</author><pubDate>Wed, 27 Jun 2018 09:22:10 +0800</pubDate><description><![CDATA[应用拦截器，Retrofit，Rxjava2，Gson解析、单例模式import java.util.concurrent.TimeUnit;

import bwie.com.api.HomeApi;
import bwie.com.common.Common;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInte...]]></description><category></category></item><item><title><![CDATA[GreenDao介绍和使用]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80726674</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80726674</guid><author>Melect</author><pubDate>Mon, 18 Jun 2018 21:23:05 +0800</pubDate><description><![CDATA[greenDao是一个将对象（java对象）映射到SQLite数据库中的轻量且快速的ORM解决方案。对象关系映射（英语：(Object Relational Mapping，简称ORM，或O/RM，或O/R mapping），是一种程序技术，用于实现面向对象编程语言里不同类型系统的数据之间的转换[1]  。关于greenDAO的概念可以看官网greenDAOgithub源码库https://git...]]></description><category></category></item><item><title><![CDATA[MVP、基类的库]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80725701</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80725701</guid><author>Melect</author><pubDate>Mon, 18 Jun 2018 19:07:37 +0800</pubDate><description><![CDATA[使用：1.下载安装Android ButterKnife Zeleany插件，并重新启动2.添加依赖：compile 'com.jakewharton:butterknife:8.8.1'  annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'如果AS版本是3.1.2的话会与butterknife产生冲突，具体冲突原因bu...]]></description><category></category></item><item><title><![CDATA[解决AndroidStudio3.1.2与butterknife的冲突问题]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80671080</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80671080</guid><author>Melect</author><pubDate>Tue, 12 Jun 2018 21:02:02 +0800</pubDate><description><![CDATA[如果AS版本是3.1.2的话会与butterknife产生冲突，具体冲突原因butterknife创始人并没有解释，以下是butterknife创始人给出的解决办法1）将gradle 的依赖版本降低到8.4.0（两个要同步）implementation 'com.jakewharton:butterknife:8.4.0'
annotationProcessor 'com.jakewharton:...]]></description><category></category></item><item><title><![CDATA[Android Fresco]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80586845</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80586845</guid><author>Melect</author><pubDate>Tue, 05 Jun 2018 20:34:57 +0800</pubDate><description><![CDATA[      依赖：   compile 'com.facebook.fresco:fresco:0.12.0' 			 支持 GIF 动图，需要添加   compile 'com.facebook.fresco:animated-gif:0.12.0'   1、Fresco是什么	Fresco 是一个强大的图片加载组件。Fresco 中设计有一个叫做*image pipeline*的模块。它负责从...]]></description><category></category></item><item><title><![CDATA[关于自定义View]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80526928</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80526928</guid><author>Melect</author><pubDate>Thu, 31 May 2018 17:17:19 +0800</pubDate><description><![CDATA[ 

关于自定义View，可以磊加控件 的宽高，并且有进入动画，

向自定义View动态加入控件

 


import android.content.Context;
import android.content.Intent;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View...]]></description><category></category></item><item><title><![CDATA[关于Android中导入依赖与版本不和的解决办法]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80526621</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80526621</guid><author>Melect</author><pubDate>Thu, 31 May 2018 16:44:03 +0800</pubDate><description><![CDATA[configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details -&amp;gt;
        def requested = details.requested
        if (requested.group == 'com.android.support') {
  ...]]></description><category></category></item><item><title><![CDATA[Mvp]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80471444</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80471444</guid><author>Melect</author><pubDate>Sun, 27 May 2018 18:58:57 +0800</pubDate><description><![CDATA[module：public class MyModule {

    public void getDate(String str, HashMap&amp;lt;String,String&amp;gt; map, final MyPresenterInterface myPresenterInterface){
        /**
         * 请求数据
         */

       ...]]></description><category></category></item><item><title><![CDATA[UnCaughtExceptionUtil]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80387625</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80387625</guid><author>Melect</author><pubDate>Mon, 21 May 2018 08:27:10 +0800</pubDate><description><![CDATA[package com.example.kson.mvvms.utils;import android.content.Context;import android.content.pm.PackageInfo;import android.content.pm.PackageManager;import android.os.Build;import android.os.Looper;impo...]]></description><category></category></item><item><title><![CDATA[简易搜索页面]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80302002</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80302002</guid><author>Melect</author><pubDate>Sun, 13 May 2018 19:58:20 +0800</pubDate><description><![CDATA[选型：组合控件，流式布局，数据库其中全为假数据关于数据库的操作package com.test3.MySqlHelp;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;


public cl...]]></description><category></category></item><item><title><![CDATA[简单的购物车实现]]></title><link>https://blog.youkuaiyun.com/Melect/article/details/80159520</link><guid>https://blog.youkuaiyun.com/Melect/article/details/80159520</guid><author>Melect</author><pubDate>Tue, 01 May 2018 21:15:16 +0800</pubDate><description><![CDATA[本片文章主要是简单实现购物车所以其中的数据是假数据，其中的图片和选择器都可以替换，只是简单实现一下使用二级列表实现的 主要的逻辑就是在适配器首先看一下数据源GoodBeanpackage bwie.com.test;

import java.util.List;

public class GoodBean {

    private List&amp;lt;ContentBean&amp;gt; conte...]]></description><category></category></item></channel></rss>