okhttp使用
摘要:官方教程解析 https://blog.csdn.net/u013651026/article/details/79738059 OkHttp官网地址:http://square.github.io/okhttp/ OkHttp GitHub地址:https://github.com/square/
阅读全文
QMUI(序章)
摘要:一:引用QMUI 1、新建一个演练项目:QMUI_Practise,使用Empty Activity。里面放置2个按钮,一个点击后显示默认的对话框,一个点击后显示QMUI对话框,从而验证QMUI框架是否生效可以使用。上面的功能,是一个简单的按钮点击功能,跟QMUI Android框架还没有任何关系。
阅读全文
Android依赖冲突解决方案
摘要:configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.android.support') { ...
阅读全文
Get和Post向服务端提交数据
摘要:_______________________________________________________________________________________________________________
阅读全文
smart imageview开源图片框架
摘要:https://github.com/loopj/android-smart-image-view (smart imageview开源图片框架) 1.将代码复制到项目中, 复制SmartImageView引用 2.设置图片URL,及请求失败时显示的图片
阅读全文
XML文件储存与解析
摘要:public class XMLUtils { /*** * XmlSerializer序列化器 XML格式保存到文件 * @param context * @param username * @param password * @throws Exception */ public static void saveX...
阅读全文
网络请求的通用步骤
摘要:1.创建URL地址 --> String urlPath 2.打开一个网络链接 3.判断数据返回的状态吗(响应码) 4.判断如果responseCode等于200,说明资源找到了,需要将资源读取进手机 注意:
阅读全文