@@ -0,0 +1,1421 @@
+/*%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.unit;%0A%0Aimport android.util.DisplayMetrics;%0A%0A/**%0A * ================================================%0A * AndroidAutoSize %E6%94%AF%E6%8C%81%E4%B8%80%E4%BA%9B%E5%9C%A8 Android %E7%B3%BB%E7%BB%9F%E4%B8%8A%E6%AF%94%E8%BE%83%E5%B0%91%E8%A7%81%E7%9A%84%E5%8D%95%E4%BD%8D%E4%BD%9C%E4%B8%BA%E5%89%AF%E5%8D%95%E4%BD%8D, %E7%94%A8%E4%BA%8E%E8%A7%84%E9%81%BF%E4%BF%AE%E6%94%B9 %7B@link DisplayMetrics#density%7D%0A * %E6%89%80%E5%B8%A6%E6%9D%A5%E7%9A%84%E5%AF%B9%E4%BA%8E%E5%85%B6%E4%BB%96%E4%BD%BF%E7%94%A8 dp %E5%B8%83%E5%B1%80%E7%9A%84%E7%B3%BB%E7%BB%9F%E6%8E%A7%E4%BB%B6%E6%88%96%E4%B8%89%E6%96%B9%E5%BA%93%E6%8E%A7%E4%BB%B6%E7%9A%84%E4%B8%8D%E8%89%AF%E5%BD%B1%E5%93%8D%0A * %3Cp%3E%0A * Created by JessYan on 2018/8/28 10:27%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 enum Subunits %7B%0A    /**%0A     * %E4%B8%8D%E4%BD%BF%E7%94%A8%E5%89%AF%E5%8D%95%E4%BD%8D%0A     */%0A    NONE,%0A    /**%0A     * %E5%8D%95%E4%BD%8D pt%0A     *%0A     * @see android.util.TypedValue#COMPLEX_UNIT_PT%0A     */%0A    PT,%0A    /**%0A     * %E5%8D%95%E4%BD%8D in%0A     *%0A     * @see android.util.TypedValue#COMPLEX_UNIT_IN%0A     */%0A    IN,%0A    /**%0A     * %E5%8D%95%E4%BD%8D mm%0A     *%0A     * @see android.util.TypedValue#COMPLEX_UNIT_MM%0A     */%0A    MM%0A%7D%0A

Create Subunits