@@ -0,0 +1,1825 @@
+/*%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.app.Activity;%0Aimport android.app.Application;%0A%0Aimport me.jessyan.autosize.internal.CancelAdapt;%0Aimport me.jessyan.autosize.internal.CustomAdapt;%0A%0A/**%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%E9%BB%98%E8%AE%A4%E5%AE%9E%E7%8E%B0%E7%B1%BB, %E5%8F%AF%E9%80%9A%E8%BF%87 %7B@link AutoSizeConfig#init(Application, boolean, AutoAdaptStrategy)%7D%0A * %E5%92%8C %7B@link AutoSizeConfig#setAutoAdaptStrategy(AutoAdaptStrategy)%7D %E5%88%87%E6%8D%A2%E7%AD%96%E7%95%A5%0A *%0A * @see AutoAdaptStrategy%0A * Created by JessYan on 2018/8/9 15:57%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 DefaultAutoAdaptStrategy implements AutoAdaptStrategy %7B%0A    @Override%0A    public void applyAdapt(Activity activity) %7B%0A        //%E5%A6%82%E6%9E%9C activity %E5%AE%9E%E7%8E%B0 CancelAdapt %E6%8E%A5%E5%8F%A3%E8%A1%A8%E7%A4%BA%E6%94%BE%E5%BC%83%E9%80%82%E9%85%8D, %E6%89%80%E6%9C%89%E7%9A%84%E9%80%82%E9%85%8D%E6%95%88%E6%9E%9C%E9%83%BD%E5%B0%86%E5%A4%B1%E6%95%88%0A        if (activity instanceof CancelAdapt) %7B%0A            return;%0A        %7D%0A%0A        //%E5%A6%82%E6%9E%9C activity %E5%AE%9E%E7%8E%B0 CustomAdapt %E6%8E%A5%E5%8F%A3%E8%A1%A8%E7%A4%BA%E8%AF%A5 activity %E6%83%B3%E8%87%AA%E5%AE%9A%E4%B9%89%E4%B8%80%E4%BA%9B%E7%94%A8%E4%BA%8E%E9%80%82%E9%85%8D%E7%9A%84%E5%8F%82%E6%95%B0, %E4%BB%8E%E8%80%8C%E6%94%B9%E5%8F%98%E6%9C%80%E7%BB%88%E7%9A%84%E9%80%82%E9%85%8D%E6%95%88%E6%9E%9C%0A        if (activity instanceof CustomAdapt) %7B%0A            AutoSize.autoConvertDensityOfCustomAdapt(activity, (CustomAdapt) activity);%0A        %7D else %7B%0A            AutoSize.autoConvertDensityOfGlobal(activity);%0A        %7D%0A    %7D%0A%7D%0A

Create DefaultAutoAdaptStrategy