一个基本Android工程的搭建
16lz
2021-01-24
一个基本Android工程的搭建
1.网络框架的引用
Rxjava+Retrofit
/* 这里是是Rxjava+Retrofit */ compile 'io.reactivex:rxjava:1.1.3' compile 'io.reactivex:rxandroid:1.1.0' compile 'com.squareup.retrofit2:retrofit:2.0.2' compile 'com.squareup.retrofit2:converter-gson:2.0.2' compile 'com.squareup.retrofit2:converter-scalars:2.0.2' compile 'com.squareup.retrofit2:adapter-rxjava:2.0.2' compile 'com.squareup.okhttp3:okhttp:3.2.0' compile 'com.squareup.okio:okio:1.8.0'
butterknife
compile 'com.jakewharton:butterknife:7.0.1'
gson
compile files('libs/gson-2.6.2.jar')
2.页面UI风格的设置
一个标准的Material Design样式
-V21
其中使用了自定义颜色,所以需要设置一下
values/attrs.xml
<?xml version="1.0" encoding="utf-8"?>
更多相关文章
- android 更改TextView部分字体颜色、大小、背景
- Android绘图之Shader
- 箭头的使用
- android实现状态栏添加图标的函数实例
- Android颜色选择器库
- android通过快捷方式打开一个网页
- android中使用svg图标
- MaterialDesign中控件属性表
- Android(安卓)setTextColor 不生效