@@ -0,0 +1,1982 @@
+/*%0A * Copyright 2018 JessYan%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage me.jessyan.autosize;%0A%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v4.app.FragmentManager;%0A%0A/**%0A * ================================================%0A * %7B@link FragmentLifecycleCallbacksImpl%7D %E5%8F%AF%E7%94%A8%E6%9D%A5%E4%BB%A3%E6%9B%BF%E5%9C%A8 BaseFragment %E4%B8%AD%E5%8A%A0%E5%85%A5%E9%80%82%E9%85%8D%E4%BB%A3%E7%A0%81%E7%9A%84%E4%BC%A0%E7%BB%9F%E6%96%B9%E5%BC%8F%0A * %7B@link FragmentLifecycleCallbacksImpl%7D %E8%BF%99%E7%A7%8D%E6%96%B9%E6%A1%88%E7%B1%BB%E4%BC%BC%E4%BA%8E AOP, %E9%9D%A2%E5%90%91%E6%8E%A5%E5%8F%A3, %E4%BE%B5%E5%85%A5%E6%80%A7%E4%BD%8E, %E6%96%B9%E4%BE%BF%E7%BB%9F%E4%B8%80%E7%AE%A1%E7%90%86, %E6%89%A9%E5%B1%95%E6%80%A7%E5%BC%BA, %E5%B9%B6%E4%B8%94%E4%B9%9F%E6%94%AF%E6%8C%81%E9%80%82%E9%85%8D%E4%B8%89%E6%96%B9%E5%BA%93%E7%9A%84 %7B@link Fragment%7D%0A * %3Cp%3E%0A * Created by JessYan on 2018/8/25 13:52%0A * %3Ca href=%22mailto:jess.yan.effort@gmail.com%22%3EContact me%3C/a%3E%0A * %3Ca href=%22https://github.com/JessYanCoding%22%3EFollow me%3C/a%3E%0A * ================================================%0A */%0Apublic class FragmentLifecycleCallbacksImpl extends FragmentManager.FragmentLifecycleCallbacks %7B%0A    /**%0A     * %E5%B1%8F%E5%B9%95%E9%80%82%E9%85%8D%E9%80%BB%E8%BE%91%E7%AD%96%E7%95%A5%E7%B1%BB%0A     */%0A    private AutoAdaptStrategy mAutoAdaptStrategy;%0A%0A    public FragmentLifecycleCallbacksImpl(AutoAdaptStrategy autoAdaptStrategy) %7B%0A        mAutoAdaptStrategy = autoAdaptStrategy;%0A    %7D%0A%0A    @Override%0A    public void onFragmentCreated(FragmentManager fm, Fragment f, Bundle savedInstanceState) %7B%0A        if (mAutoAdaptStrategy != null) %7B%0A            mAutoAdaptStrategy.applyAdapt(f, f.getActivity());%0A        %7D%0A    %7D%0A%0A    /**%0A     * %E8%AE%BE%E7%BD%AE%E5%B1%8F%E5%B9%95%E9%80%82%E9%85%8D%E9%80%BB%E8%BE%91%E7%AD%96%E7%95%A5%E7%B1%BB%0A     *%0A     * @param autoAdaptStrategy %7B@link AutoAdaptStrategy%7D%0A     */%0A    public void setAutoAdaptStrategy(AutoAdaptStrategy autoAdaptStrategy) %7B%0A        mAutoAdaptStrategy = autoAdaptStrategy;%0A    %7D%0A%7D%0A

Create FragmentLifecycleCallbacksImpl