View.inflate方法和LayoutInflater.from(context).inflate方法詳解

  • 從xml中加載一個View,一般通過以下兩個方法:View#inflate(Context context, @LayoutRes int resource, ViewGroup root)方法和LayoutInflater#inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot)方法

  • View#inflate方法源碼可以看到,它最終也是調(diào)用LayoutInflater#inflate方法

<!----------View----------->

  public static View inflate(Context context, @LayoutRes int resource, ViewGroup root) {
        LayoutInflater factory = LayoutInflater.from(context);
        return factory.inflate(resource, root);
    }
  • 跟著進入LayoutInflater#inflate方法源碼
<!----------LayoutInflater------------>

 public View inflate(@LayoutRes int resource, @Nullable ViewGroup root) {
        return inflate(resource, root, root != null);   
    }
  • LayoutInflater兩個參數(shù)的inflate方法最終又調(diào)用了三個參數(shù)的inflate方法
   public View inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot) {
        final Resources res = getContext().getResources();
  
        final XmlResourceParser parser = res.getLayout(resource);
        try {
            return inflate(parser, root, attachToRoot);
        } finally {
            parser.close();
        }
    }
  • 三個參數(shù)的方法最終又調(diào)用了它的重載方法郑什,真正的返回了View
 public View inflate(XmlPullParser parser, @Nullable ViewGroup root, boolean attachToRoot) {
        synchronized (mConstructorArgs) {
            Trace.traceBegin(Trace.TRACE_TAG_VIEW, "inflate");

            final Context inflaterContext = mContext;
            final AttributeSet attrs = Xml.asAttributeSet(parser);
            Context lastContext = (Context) mConstructorArgs[0];
            mConstructorArgs[0] = inflaterContext;
            View result = root;

            try {
                // Look for the root node.
                int type;
                while ((type = parser.next()) != XmlPullParser.START_TAG &&
                        type != XmlPullParser.END_DOCUMENT) {
                    // Empty
                }

                if (type != XmlPullParser.START_TAG) {
                    throw new InflateException(parser.getPositionDescription()
                            + ": No start tag found!");
                }

                final String name = parser.getName();
                

                if (TAG_MERGE.equals(name)) {
                    if (root == null || !attachToRoot) {
                        throw new InflateException("<merge /> can be used only with a valid "
                                + "ViewGroup root and attachToRoot=true");
                    }

                    rInflate(parser, root, inflaterContext, attrs, false);
                } else {
                    // Temp is the root view that was found in the xml
                    final View temp = createViewFromTag(root, name, inflaterContext, attrs);

                    ViewGroup.LayoutParams params = null;

                    if (root != null) {
                        if (DEBUG) {
                            System.out.println("Creating params from root: " +
                                    root);
                        }
                        // Create layout params that match root, if supplied
                        params = root.generateLayoutParams(attrs);
                        if (!attachToRoot) {
                            // Set the layout params for temp if we are not
                            // attaching. (If we are, we use addView, below)
                            temp.setLayoutParams(params);
                        }
                    }

                    if (DEBUG) {
                        System.out.println("-----> start inflating children");
                    }

                    // Inflate all children under temp against its context.
                    rInflateChildren(parser, temp, attrs, true);

                    if (DEBUG) {
                        System.out.println("-----> done inflating children");
                    }

                    // We are supposed to attach all the views we found (int temp)
                    // to root. Do that now.
                    if (root != null && attachToRoot) {
                        root.addView(temp, params);
                    }

                    // Decide whether to return the root that was passed in or the
                    // top view found in xml.
                    if (root == null || !attachToRoot) {
                        result = temp;
                    }
                }

            } catch (XmlPullParserException e) {
                final InflateException ie = new InflateException(e.getMessage(), e);
                ie.setStackTrace(EMPTY_STACK_TRACE);
                throw ie;
            } catch (Exception e) {
                final InflateException ie = new InflateException(parser.getPositionDescription()
                        + ": " + e.getMessage(), e);
                ie.setStackTrace(EMPTY_STACK_TRACE);
                throw ie;
            } finally {
                // Don't retain static reference on context.
                mConstructorArgs[0] = lastContext;
                mConstructorArgs[1] = null;

                Trace.traceEnd(Trace.TRACE_TAG_VIEW);
            }

            return result;
        }
    }
  • 為了方便分析取出關(guān)鍵代碼如下
 public View inflate(XmlPullParser parser, @Nullable ViewGroup root, boolean attachToRoot) {
            View result = root;
            
            final String name = parser.getName();

            if (TAG_MERGE.equals(name)) {
                if (root == null || !attachToRoot) {
                    throw new InflateException("<merge /> can be used only with a valid "
                            + "ViewGroup root and attachToRoot=true");
                }

                rInflate(parser, root, inflaterContext, attrs, false);
            } else {
                // 獲取xml中的根view
                final View temp = createViewFromTag(root, name, inflaterContext, attrs);

                ViewGroup.LayoutParams params = null;

                if (root != null) {

                    // Create layout params that match root, if supplied
                    params = root.generateLayoutParams(attrs);
                    if (!attachToRoot) {
                        // Set the layout params for temp if we are not
                        // attaching. (If we are, we use addView, below)
                        //如果ViewGroup root不為null并且attachToRoot == false,為xml獲取的根view temp設(shè)置 ViewGroup.LayoutParams
                        temp.setLayoutParams(params);
                    }
                }


                // 將temp下所有的子view添加到temp中
                rInflateChildren(parser, temp, attrs, true);  

                //如果ViewGroup root不為null并且attachToRoot == true侦香,將temp添加到root中,并設(shè)置 ViewGroup.LayoutParams
                if (root != null && attachToRoot) {
                    root.addView(temp, params);
                }

                // 如果傳進來的ViewGroup root為null 或者attachToRoot == false,返回xml中的根view temp朱庆,其它情況返回傳進來的ViewGroup root
                if (root == null || !attachToRoot) {
                    result = temp;
                }
            }

            return result;  
    }
  • 從最后的方法中可以看到,關(guān)鍵的點在于傳入的ViewGroup root的值和boolean attachToRoot的值闷祥,這兩個值得取值不同娱颊,最終影響返回的是傳入的ViewGroup root還是獲取xml中的根view temp,并且影響是否為temp設(shè)置了ViewGroup.LayoutParams
  1. ViewGroup root == null && attachToRoot == false ====> 返回獲取xml中的根view temp凯砍,同時temp并沒有設(shè)置了ViewGroup.LayoutParams(此時如果獲取LayoutParams可能為空)
  2. ViewGroup root == null && attachToRoot == true ====> 返回獲取xml中的根view temp箱硕,同時temp并沒有設(shè)置了ViewGroup.LayoutParams(此時如果獲取LayoutParams可能為空)
  3. ViewGroup root != null && attachToRoot == false====>返回獲取xml中的根view temp,同時設(shè)置了ViewGroup.LayoutParams
  4. ViewGroup root != null && attachToRoot == true====> 返回ViewGroup root,同時為獲取到xml中的根view temp設(shè)置了ViewGroup.LayoutParams,并添加到ViewGroup root
  • 現(xiàn)在再來看View#inflate(Context context, @LayoutRes int resource, ViewGroup root)方法,它實際上調(diào)用了inflate(resource, root, root != null) 悟衩,也就是說有兩種情況:
  1. 一種是 ViewGroup root == null && attachToRoot == false剧罩,此時需要注意的是返回的是xml布局的根View,并且并未為該根View設(shè)置ViewGroup.LayoutParams座泳,在這種情況需要獲取view的LayoutParams進行操作的需要特別注意
  2. 另外一種是ViewGroup root != null && attachToRoot == true,此時返回的是傳入的ViewGroup root斑响,同時為獲取到xml中的根view temp設(shè)置了ViewGroup.LayoutParams,并添加到ViewGroup root,這種情況需要注意的是xml中的布局已經(jīng)被添加到ViewGroup root中钳榨,如果需要添加到另外的地方,這種方法是不可行的
  • 也就是說對于View#inflate方法纽门,想要滿足ViewGroup root != null && attachToRoot == false是無法滿足的薛耻。而如果需要使用xml中的根view的ViewGroup.LayoutParams,首先需要滿足ViewGroup root不為空(當(dāng)然在onLayout之后使用是可以的赏陵,此時已經(jīng)有parent了)饼齿,另外對于ReclclerView/ListView來說饲漾,它會自己在合適的時機將child添加進來,所以attachToRoot必須需要false缕溉,否則在渲染View的時候就會首先添加到ViewGroup root中考传,導(dǎo)致重復(fù)添加到parent中報錯,因此View#inflate方法是無法滿足的证鸥,需要使用LayoutInflater#inflate(resource,root,false)方法
  • 對于LayoutInflater#inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot)方法僚楞,同樣的也會根據(jù)傳入的值得不同得到不同的結(jié)果,在選擇使用哪種方法獲取View的時候就需要考慮對于接下來要對View進行的操作是否有影響

  • 擴展
    在學(xué)習(xí)Fragment的時候,下面的寫法應(yīng)該是熟悉到不能再熟悉了

 @Nullable
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
            @Nullable Bundle savedInstanceState) {
            View view = inflater.inflate(layoutRes, container, false);
        return view ;
    }
  • View view = inflater.inflate(layoutRes, container, false);一直是我們的固定寫法枉层,我想一定有同學(xué)會跟我一樣覺得為什么一定要false泉褐,改成true可不可以
public class TestViewInflaterFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.activity_main, container, true);
    }
}
  • 當(dāng)把它添加到activity中的時候
class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        supportFragmentManager.beginTransaction().add(R.id.fl_container, TestViewInflaterFragment()).commit()
    }
}
  • 下面的錯誤一定會教你老老實實做人,大家都是這樣說用false是有道理的鸟蜡,但是我們除了記得需要用false膜赃,還是需要知道為什么一定要用false,而用true就不行
 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.demo/com.test.demo.MainActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
                                                                                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
                                                                                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
                                                                                  at android.app.ActivityThread.-wrap11(Unknown Source:0)
                                                                                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
                                                                                  at android.os.Handler.dispatchMessage(Handler.java:105)
                                                                                  at android.os.Looper.loop(Looper.java:164)
                                                                                  at android.app.ActivityThread.main(ActivityThread.java:6541)
                                                                                  at java.lang.reflect.Method.invoke(Native Method)
                                                                                  at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
                                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
                                                                               Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
                                                                                  at android.view.ViewGroup.addViewInner(ViewGroup.java:4915)
                                                                                  at android.view.ViewGroup.addView(ViewGroup.java:4746)
                                                                                  at android.view.ViewGroup.addView(ViewGroup.java:4686)
                                                                                  at android.view.ViewGroup.addView(ViewGroup.java:4659)
                                                                                  at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1425)
                                                                                  at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1740)
                                                                                  at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1809)
                                                                                  at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:799)
                                                                                  at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2580)
                                                                                  at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2367)
                                                                                  at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2322)
                                                                                  at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2229)
                                                                                  at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3221)
                                                                                  at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3171)
                                                                                  at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:192)
                                                                                  at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:560)
                                                                                  at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:177)
                                                                                  at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1333)
                                                                                  at android.app.Activity.performStart(Activity.java:6992)
                                                                                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2780)
                                                                                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) 
                                                                                  at android.app.ActivityThread.-wrap11(Unknown Source:0) 
                                                                                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) 
                                                                                  at android.os.Handler.dispatchMessage(Handler.java:105) 
                                                                                  at android.os.Looper.loop(Looper.java:164) 
                                                                                  at android.app.ActivityThread.main(ActivityThread.java:6541) 
                                                                                  at java.lang.reflect.Method.invoke(Native Method) 
                                                                                  at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
                                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 
  • 仔細看一看錯誤日志The specified child already has a parent. You must call removeView() on the child's parent first.,看這句結(jié)合前面說過的內(nèi)容揉忘,我想大家肯定已經(jīng)知道為什么了跳座,當(dāng)我們寫成true的時候,會將xml創(chuàng)建的root view添加到container泣矛,然后推測Fragment被加載的時候在某個地方又將xml創(chuàng)建的root view再添加到一個ViewGroup中疲眷,所以會導(dǎo)致這個錯誤,繼續(xù)看一看推測是否正確

  • 先看Fragment#onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState)在哪里被調(diào)用

  View performCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        if (mChildFragmentManager != null) {
            mChildFragmentManager.noteStateNotSaved();
        }
        mPerformedCreateView = true;
        return onCreateView(inflater, container, savedInstanceState);
    }
  • 繼續(xù)看Fragment#performCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)的調(diào)用
//-----------FramgnetManager---------------
 void moveToState(Fragment f, int newState, int transit, int transitionStyle,
            boolean keepActive) {   
                //省略部分代碼
                  ``` 
            switch (f.mState) {
                  //省略部分代碼
                  ``` 
                case Fragment.CREATED:
                    // This is outside the if statement below on purpose; we want this to run
                    // even if we do a moveToState from CREATED => *, CREATED => CREATED, and
                    // * => CREATED as part of the case fallthrough above.
                    ensureInflatedFragmentView(f);

                    if (newState > Fragment.CREATED) {
                        if (DEBUG) Log.v(TAG, "moveto ACTIVITY_CREATED: " + f);
                        if (!f.mFromLayout) {
                            ViewGroup container = null;
                            if (f.mContainerId != 0) {
                                if (f.mContainerId == View.NO_ID) {
                                    throwException(new IllegalArgumentException(
                                            "Cannot create fragment "
                                                    + f
                                                    + " for a container view with no id"));
                                }
                           //首先根據(jù)我們傳入的mContainerId(對于本案例來說就是R.id.fl_container)找到container 
                                container = (ViewGroup) mContainer.onFindViewById(f.mContainerId);
                                if (container == null && !f.mRestored) {
                                    String resName;
                                    try {
                                        resName = f.getResources().getResourceName(f.mContainerId);
                                    } catch (NotFoundException e) {
                                        resName = "unknown";
                                    }
                                    throwException(new IllegalArgumentException(
                                            "No view found for id 0x"
                                            + Integer.toHexString(f.mContainerId) + " ("
                                            + resName
                                            + ") for fragment " + f));
                                }
                            }
                            f.mContainer = container;
                          //這個f.mView就是我們自己在onCreateView方法中創(chuàng)建返回的View
                            f.mView = f.performCreateView(f.performGetLayoutInflater(
                                    f.mSavedFragmentState), container, f.mSavedFragmentState);
                            if (f.mView != null) {
                                f.mInnerView = f.mView;
                                f.mView.setSaveFromParentEnabled(false);
                                if (container != null) {
                            //關(guān)鍵地方乳蓄,在這里會將xml創(chuàng)建的view添加到container
                                    container.addView(f.mView);
                                }
                          //省略部分代碼
                            ``` 
                    }

                   //省略部分代碼
                  ``` 
            }
    }
  • 方法太長咪橙,為了便于查看省略了部分代碼,看注釋已經(jīng)說明了前面的推測是正確的虚倒,當(dāng)改為true的時候美侦,在創(chuàng)建xml view的時候會將view add到傳入的parent(container)中,然后將Fragment加載進來的時候魂奥,F(xiàn)ragmentManager會再一次將創(chuàng)建的xml view添加到container(也就是我們指定的container id指向的ViewGroup)中菠剩,所以導(dǎo)致了重復(fù)添加一個view到ViewGroup中的錯誤。

  • 另外再說一個查看源碼的小技巧耻煤,首先源碼太多太復(fù)雜具壮,一頭扎進去可能就出不來了。首先需要抱著一個目的去查看源碼哈蝇,一般查看源碼是為了驗證一個東西或者學(xué)習(xí)源碼是怎么樣實現(xiàn)某種效果或者某個功能的棺妓,這就是這次查看源碼的目的,主線炮赦。像前面就是為了驗證是不是Fragment加載的時候會將創(chuàng)建的View添加到某個ViewGroup中怜跑,然后根據(jù)方法的調(diào)用去找尋可能是我們目的的代碼,有時候有些方法的調(diào)用是很復(fù)雜的,有些方法也特別長性芬,稍微不注意可能就錯過了想要的內(nèi)容峡眶。比如之前的Fragment#performCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)還有另外一個地方唄調(diào)用,可能我們會進來了再一直深入植锉,然后很容易就被繞暈了

 void ensureInflatedFragmentView(Fragment f) {
        if (f.mFromLayout && !f.mPerformedCreateView) {
            f.mView = f.performCreateView(f.performGetLayoutInflater(
                    f.mSavedFragmentState), null, f.mSavedFragmentState);
            if (f.mView != null) {
                f.mInnerView = f.mView;
                f.mView.setSaveFromParentEnabled(false);
                if (f.mHidden) f.mView.setVisibility(View.GONE);
                f.onViewCreated(f.mView, f.mSavedFragmentState);
                dispatchOnFragmentViewCreated(f, f.mView, f.mSavedFragmentState, false);
            } else {
                f.mInnerView = null;
            }
        }
    }
  • 另外FragmentManager#moveToState(Fragment f, int newState, int transit, int transitionStyle, boolean keepActive)也非常長辫樱,怎么樣才能提高找到線索的可能性呢? 還記的我們的目的嗎?驗證是不是Fragment加載的時候會將創(chuàng)建的View添加到某個ViewGroup,添加到ViewGroup,第一時間應(yīng)該想到ViewGroup#addView方法俊庇,然后在對應(yīng)的方法里面搜索一下addView狮暑,如果找到了有,再前后代碼查看一下是不是我們的目的暇赤,一步一步排查下去最終解決我們的問題心例。
  • 這只是一個查看源碼的小技巧,可能并不能每次都能解決所有的問題鞋囊。但是可以幫我們少走一點彎路止后。畢竟一入源碼深似海。而且最好不要抱著把源碼里面的所有東西都看懂溜腐,每一個變量代表什么都去糾結(jié)(當(dāng)然如果有這個能力的話也是可以的)译株。應(yīng)該抱著學(xué)習(xí)和解決問題的目的,有針對性的去看源碼挺益,沿著一條主線去搞懂并解決我們遇到的問題歉糜。
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市望众,隨后出現(xiàn)的幾起案子匪补,更是在濱河造成了極大的恐慌,老刑警劉巖烂翰,帶你破解...
    沈念sama閱讀 216,997評論 6 502
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件夯缺,死亡現(xiàn)場離奇詭異,居然都是意外死亡甘耿,警方通過查閱死者的電腦和手機踊兜,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,603評論 3 392
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來佳恬,“玉大人捏境,你說我怎么就攤上這事』俅校” “怎么了垫言?”我有些...
    開封第一講書人閱讀 163,359評論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長倾剿。 經(jīng)常有香客問我筷频,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,309評論 1 292
  • 正文 為了忘掉前任截驮,我火速辦了婚禮,結(jié)果婚禮上际度,老公的妹妹穿的比我還像新娘葵袭。我一直安慰自己,他們只是感情好乖菱,可當(dāng)我...
    茶點故事閱讀 67,346評論 6 390
  • 文/花漫 我一把揭開白布坡锡。 她就那樣靜靜地躺著,像睡著了一般窒所。 火紅的嫁衣襯著肌膚如雪鹉勒。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,258評論 1 300
  • 那天吵取,我揣著相機與錄音禽额,去河邊找鬼。 笑死皮官,一個胖子當(dāng)著我的面吹牛脯倒,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播捺氢,決...
    沈念sama閱讀 40,122評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼藻丢,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了摄乒?” 一聲冷哼從身側(cè)響起悠反,我...
    開封第一講書人閱讀 38,970評論 0 275
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎馍佑,沒想到半個月后斋否,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,403評論 1 313
  • 正文 獨居荒郊野嶺守林人離奇死亡挤茄,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,596評論 3 334
  • 正文 我和宋清朗相戀三年如叼,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片穷劈。...
    茶點故事閱讀 39,769評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡笼恰,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出歇终,到底是詐尸還是另有隱情社证,我是刑警寧澤,帶...
    沈念sama閱讀 35,464評論 5 344
  • 正文 年R本政府宣布评凝,位于F島的核電站追葡,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜宜肉,卻給世界環(huán)境...
    茶點故事閱讀 41,075評論 3 327
  • 文/蒙蒙 一匀钧、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧谬返,春花似錦之斯、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,705評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至酿炸,卻和暖如春瘫絮,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背填硕。 一陣腳步聲響...
    開封第一講書人閱讀 32,848評論 1 269
  • 我被黑心中介騙來泰國打工麦萤, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人廷支。 一個月前我還...
    沈念sama閱讀 47,831評論 2 370
  • 正文 我出身青樓频鉴,卻偏偏與公主長得像,于是被迫代替她去往敵國和親恋拍。 傳聞我的和親對象是個殘疾皇子垛孔,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,678評論 2 354

推薦閱讀更多精彩內(nèi)容