![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小细节
小裴所碰到那些坑
只是个菜鸡请多多见谅
展开
-
Android 使用http明文请求
一般测试的时候调用http请求,因服务端没配置SSL,只能使用http明文通讯,在Android9.0及以上的系统中会报错误(CLEARTEXT communication to xxx.xxx.xxx.xxx not permitted by network security policy)解决方法很简单1.在AndroidManifest.xml的application中加入android:usesCleartextTraffic="true"2.在AndroidManifest.xml的ap原创 2021-12-22 14:38:15 · 2511 阅读 · 0 评论 -
Android:过渡页替换白屏
一般app不做处理的话,打开的时候都会出现白屏,感觉好不美观。想要把白屏换成自己想要的页面很简单在styles里面加入 <style name="AppTheme.myTheme" parent="AppTheme"> <!-- 设置开机过渡图,当然也能换成自定义的布局/图片 --> <item name="android:win...原创 2019-04-08 11:45:15 · 744 阅读 · 0 评论