/*
 * Copyright 2018 JessYan
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package me.jessyan.autosize;

import android.app.Activity;

/**
 * ================================================
 * {@link AutoAdaptStrategy} 的包装者, 用于给 {@link AutoAdaptStrategy} 的实现类增加一些额外的职责
 *
 * Created by JessYan on 2018/10/30 15:07
 * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
 * <a href="https://github.com/JessYanCoding">Follow me</a>
 * ================================================
 */
public class WrapperAutoAdaptStrategy implements AutoAdaptStrategy {
    private final AutoAdaptStrategy mAutoAdaptStrategy;

    public WrapperAutoAdaptStrategy(AutoAdaptStrategy autoAdaptStrategy) {
        mAutoAdaptStrategy = autoAdaptStrategy;
    }

    @Override
    public void applyAdapt(Object target, Activity activity) {
        if (mAutoAdaptStrategy != null) {
            mAutoAdaptStrategy.applyAdapt(target, activity);
        }
    }
}

@@ -782,16 +782,20 @@
 %E9%A2%9D%E5%A4%96%E7%9A%84%E8%81%8C%E8%B4%A3%0A *
+ %3Cp%3E
 %0A * Crea
@@ -1351,83 +1351,393 @@
     
-if (mAutoAdaptStrategy != null) %7B%0A            mAutoAdaptStrategy.applyAdapt
+onAdaptListener onAdaptListener = AutoSizeConfig.getInstance().getOnAdaptListener();%0A        if (onAdaptListener != null)%7B%0A            onAdaptListener.onAdaptBefore(target, activity);%0A        %7D%0A        if (mAutoAdaptStrategy != null) %7B%0A            mAutoAdaptStrategy.applyAdapt(target, activity);%0A        %7D%0A        if (onAdaptListener != null)%7B%0A            onAdaptListener.onAdaptAfter
 (tar

Improve WrapperAutoAdaptStrategy