<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Mrzhaohe的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Mrzhaohe</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Mrzhaohe]]></copyright><item><title><![CDATA[Android简单实现一个开关效果]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/100651295</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/100651295</guid><author>Mrzhaohe</author><pubDate>Mon, 09 Sep 2019 08:58:29 +0800</pubDate><description><![CDATA[废话少说，上图
关闭状态：

开启状态：

首先这里我使用了Switch控件（自行百度）
下面上代码：
&lt;Switch
                android:id="@+id/open_h"
                android:layout_width="wrap_content"
                android:layout_height="match...]]></description><category></category></item><item><title><![CDATA[乞丐版流式布局的简单实现]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/96763224</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/96763224</guid><author>Mrzhaohe</author><pubDate>Sun, 21 Jul 2019 21:20:27 +0800</pubDate><description><![CDATA[首先：EdText和TextView的组合控件就不写了
直接开始重写FrameLayout
public class LayoutViewTwo extends FrameLayout {

private int dimension;

public LayoutViewTwo(Context context) {
    super(context);
}

public LayoutView...]]></description><category></category></item><item><title><![CDATA[webview应用]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90750527</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90750527</guid><author>Mrzhaohe</author><pubDate>Mon, 03 Jun 2019 13:23:36 +0800</pubDate><description><![CDATA[WebSettings webSettings = detailsWeb.getSettings();
            webSettings.setJavaScriptEnabled(true);
            webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
            webSettings....]]></description><category></category></item><item><title><![CDATA[详情页banner]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90747357</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90747357</guid><author>Mrzhaohe</author><pubDate>Mon, 03 Jun 2019 09:48:32 +0800</pubDate><description><![CDATA[tabOneBean = gson.fromJson(data, Tab_One_Bean.class);
            String[] split = tabOneBean.getResult().getPicture().split(",");
            final List&lt;String&gt; arr = Arrays.asList(split);
 ...]]></description><category></category></item><item><title><![CDATA[PopupWindow二级列表展示数据]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90747226</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90747226</guid><author>Mrzhaohe</author><pubDate>Mon, 03 Jun 2019 09:40:23 +0800</pubDate><description><![CDATA[点击事件：
（接口回调）
public void search_menu() {
        PopupWindow window = new PopupWindow(view, 1080, 350, true);
        window.setBackgroundDrawable(new ColorDrawable());
        window.setTouchable(tru...]]></description><category></category></item><item><title><![CDATA[购物车二级联动（仿京东，淘宝）]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90346790</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90346790</guid><author>Mrzhaohe</author><pubDate>Sun, 19 May 2019 20:09:34 +0800</pubDate><description><![CDATA[代码很简单，逻辑很重要
大体布局效果实现：RecyclerView的条目中嵌套RecyclerView
将购物车分为三层：
外面的一层：全选/全不选  CheckBox
中间的一层：商家的  checkbox
里面的一层：商品的 checkbox
第一步：自定义view制作加减器：
public class AdditionView extends LinearLayout {

private ...]]></description><category></category></item><item><title><![CDATA[自定义ViewPager禁止滑动，滑动效果不显示]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90145594</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90145594</guid><author>Mrzhaohe</author><pubDate>Sun, 12 May 2019 21:21:38 +0800</pubDate><description><![CDATA[自定义view：
public class CustomViewPager extends ViewPager {

private boolean isCanScroll = true;

private boolean noScroll = false;

public CustomViewPager(@NonNull Context context) {
    super(context)...]]></description><category></category></item><item><title><![CDATA[ViewPager中Fragment跳转Fagment简单实现    PS:傻子都能看懂]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90144617</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90144617</guid><author>Mrzhaohe</author><pubDate>Sun, 12 May 2019 20:17:05 +0800</pubDate><description><![CDATA[首先第一步：
在activity中声明一个方法
//声明一个方法，下标为1，处于第二个Fragment
public void onCurrent(){
    vp.setCurrentItem(1);
}

第二步：
在第一个Fragment中写一个控件，设置点击事件
hd.setOnClickListener(new View.OnClickListener() {
        @Ove...]]></description><category></category></item><item><title><![CDATA[Glide外部缓存操作]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90144322</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90144322</guid><author>Mrzhaohe</author><pubDate>Sun, 12 May 2019 19:54:39 +0800</pubDate><description><![CDATA[public class GlideCache extends AppGlideModule {

private String path = null;
private String sdRootPath = Environment.getExternalStorageDirectory().getPath();

@Override
public void applyOptions(@NonN...]]></description><category></category></item><item><title><![CDATA[okhttp网络封装类的简单实现]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90105412</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/90105412</guid><author>Mrzhaohe</author><pubDate>Sat, 11 May 2019 08:23:22 +0800</pubDate><description><![CDATA[import android.os.Handler;
import java.io.IOException;
import java.util.concurrent.TimeUnit;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import ...]]></description><category></category></item><item><title><![CDATA[Xbanner轮播图展示]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/89880958</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/89880958</guid><author>Mrzhaohe</author><pubDate>Mon, 06 May 2019 13:42:35 +0800</pubDate><description><![CDATA[xb.loadImage(new XBanner.XBannerAdapter() {
        @Override
        public void loadBanner(XBanner banner, Object model, View view, int position) {
            Glide.with(MainActivity.this).load(((B...]]></description><category></category></item><item><title><![CDATA[volley实现登录注册]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/89880768</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/89880768</guid><author>Mrzhaohe</author><pubDate>Mon, 06 May 2019 13:30:30 +0800</pubDate><description><![CDATA[契约类：
public interface LoginContract {
//Iview
  interface  IloginView{
      void  getPreDate(String data);

}

//Imodel
  interface  IloginModel{
      void  getRequester(Context context, String url,...]]></description><category></category></item><item><title><![CDATA[XRecyclerView简单实现刷新加载]]></title><link>https://blog.youkuaiyun.com/Mrzhaohe/article/details/89879172</link><guid>https://blog.youkuaiyun.com/Mrzhaohe/article/details/89879172</guid><author>Mrzhaohe</author><pubDate>Mon, 06 May 2019 11:39:48 +0800</pubDate><description><![CDATA[XRecyclerView简单实现刷新加载
public class MainActivity extends AppCompatActivity implements Coustent.ViewIml {

private XRecyclerView rcv;
private Presenter presenter;
private ImageView imageView;
private in...]]></description><category></category></item></channel></rss>