Skip to content
zdl411437734Public

About

Volley简单的封装使用

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Volley是Volley工程
Volleyutils是volley的简单封装

Volley Utils使用指南


1、引入maven仓库 在工程build中 配置maven参考 maven{ url 'http://maven.etongwl.com/'}

2、在工程buld中引入VolleyUtils compile 'com.etongwl.volleyutils:VolleyUtils:1.0.0'

3、实现HttpConfig中抽象方法setUrlByCode,这个方法配置请求的URL路径 例如 publicvoid setUrlByCode(){ urls.put("login", "http://xxxxxxxx/mdcom/mobile/mobileUsers/login.jhtml"); }

4、使用HttpRequestManager发起网络请求(请求底层使用的Volley,请求参数是Map中设置)

About

Volley简单的封装使用

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages