摘要:
Drawable drawable=getResources().getDrawable(R.drawable.xx); //获取图片 drawable.setBounds(left, top, right, bottom); //设置图片参数 xx.setCompoundDrawablesRela 阅读全文
posted @ 2017-08-31 20:03
kim_liu
阅读(8412)
评论(0)
推荐(0)
摘要:
一、Toolbar的简介 Toolbar 是 android 5.0 引入的一个新控件,Toolbar出现之前,我们很多时候都是使用ActionBar以及ActionActivity实现顶部导航栏的,因此Toolbar可以理解为是ActionBar的升级版。Toolbar大大扩展了ActionBar 阅读全文
posted @ 2017-08-31 19:48
kim_liu
阅读(1276)
评论(0)
推荐(0)
摘要:
1. reference:参考某一资源ID。 (1)属性定义: <declare-styleable name = "名称"> <attr name = "background" format = "reference" /> </declare-styleable> (2)属性使用: <Image 阅读全文
posted @ 2017-08-31 13:35
kim_liu
阅读(2295)
评论(0)
推荐(0)
摘要:
相信做Android开发的对Square公司一定不会陌生,大名鼎鼎的网络请求框架Retrofit就来源于它,今天学习的是该公司出品的图片加载框架Picasso。 项目地址 https://github.com/square/picasso 使用说明 http://square.github.io/p 阅读全文
posted @ 2017-08-31 10:38
kim_liu
阅读(1607)
评论(0)
推荐(0)
摘要:
方法一: 先点击Androidstudio中的Project Structure,如图 图1 到如下界面 图2 然后点击+号 图3 选择Library dependency 图4 输入你要的jar包,点击放大镜搜索,找到后就选择好后点击OK,就会发现你刚才选择的jar包已经在project stru 阅读全文
posted @ 2017-08-31 10:25
kim_liu
阅读(917)
评论(0)
推荐(0)

浙公网安备 33010602011771号