一个基本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"?>                                                

更多相关文章

  1. android 更改TextView部分字体颜色、大小、背景
  2. Android绘图之Shader
  3. 箭头的使用
  4. android实现状态栏添加图标的函数实例
  5. Android颜色选择器库
  6. android通过快捷方式打开一个网页
  7. android中使用svg图标
  8. MaterialDesign中控件属性表
  9. Android(安卓)setTextColor 不生效

随机推荐

  1. 通过Ant将android project打包成apk并安
  2. android按键驱动开发实例1(修改一个按键)
  3. android的学习记录-包括android的安装、
  4. Android Studio安装配置(详细版)
  5. Android 各版本 设置 USB 默认连接 MTP
  6. Android 核心分析之------Android 启动过
  7. Android一个支持竖向滚动的ViewPager实现
  8. 深入理解android消息处理机制
  9. 对Symbian和Android之争的一点浅见
  10. PasswordMaker的Android客户端