<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Fragment on 领风沐雨</title><link>https://blog.zdltech.com/tags/fragment/</link><description>Recent content in Fragment on 领风沐雨</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 27 Jul 2016 02:18:34 +0000</lastBuildDate><atom:link href="https://blog.zdltech.com/tags/fragment/index.xml" rel="self" type="application/rss+xml"/><item><title>Fragment销毁时replace和add两个方法的区别</title><link>https://blog.zdltech.com/posts/fragment%E9%94%80%E6%AF%81%E6%97%B6replace%E5%92%8Cadd%E4%B8%A4%E4%B8%AA%E6%96%B9%E6%B3%95%E7%9A%84%E5%8C%BA%E5%88%AB/</link><pubDate>Wed, 27 Jul 2016 02:18:34 +0000</pubDate><guid>https://blog.zdltech.com/posts/fragment%E9%94%80%E6%AF%81%E6%97%B6replace%E5%92%8Cadd%E4%B8%A4%E4%B8%AA%E6%96%B9%E6%B3%95%E7%9A%84%E5%8C%BA%E5%88%AB/</guid><description>这个首先从一个bug说起，如图: ![](http://www.ithtw.com/images/2015/03/2015032611145532.gif)![](http://www.ithtw.com/images/2015/03/2015032611145564.png) ![](http:/...</description></item><item><title>Android DrawerLayout+ fragment 布局实现左右侧滑</title><link>https://blog.zdltech.com/posts/android-drawerlayout-fragment-%E5%B8%83%E5%B1%80%E5%AE%9E%E7%8E%B0%E5%B7%A6%E5%8F%B3%E4%BE%A7%E6%BB%91/</link><pubDate>Tue, 05 Aug 2014 04:47:19 +0000</pubDate><guid>https://blog.zdltech.com/posts/android-drawerlayout-fragment-%E5%B8%83%E5%B1%80%E5%AE%9E%E7%8E%B0%E5%B7%A6%E5%8F%B3%E4%BE%A7%E6%BB%91/</guid><description>**技术要点： android.support.v4.widget.DrawerLayout** **打开抽屉： DrawerLayout .openDrawer();** **关闭抽屉：DrawerLayout.closeDrawer( );** **为slidingLayout设置一个layou...</description></item></channel></rss>