美文网首页
今日头条适配

今日头条适配

作者: 小慧sir | 来源:发表于2020-12-31 11:27 被阅读0次
依赖

   implementation'me.jessyan:autosize:1.2.1'
AndroidManifest.xml
  <meta-data
            android:name="design_width_in_dp"
            android:value="640" />
        <meta-data
            android:name="design_height_in_dp"
            android:value="360" />
调用
    private void autosizeconfig() {
        AutoSizeConfig.getInstance().setCustomFragment(true);
        AutoSize.initCompatMultiProcess(myAppContext);
    }
相关链接
https://blog.csdn.net/qq_39027256/article/details/103063850
https://blog.csdn.net/weixin_37730482/article/details/73614088
https://mp.weixin.qq.com/s/d9QCoBP6kV9VSWvVldVVwA
https://zhidao.baidu.com/question/1928151850671382867.html

相关文章

网友评论

      本文标题:今日头条适配

      本文链接:https://www.haomeiwen.com/subject/srploktx.html