【开源】Android-GoogleIoView
Android-GoogleIoView
- https://github.com/ufo22940268/Android-GoogleIoView
介绍:
模仿2014 google io写的一个parallax view ,下拉缩放,上滚固定头部。运行效果:
![]()
使用说明:
在gradle.build中加入
compile 'me.biubiubiu.googleioview:library:1.0'
在xml中配置
|
1
2
3
4
5
6
7
|
<me.biubiubiu.iolistview.library.GoogleIOView android:layout_width="match_parent" android:layout_height="match_parent" app:parallax_color="#66ccff" /> |
设置背景图片
|
1
2
|
GoogleIOView ioView = (GoogleIOView) findViewById(R.id.io); ioView.getImageBackground().setImageResource(R.drawable.go_lang_item); |
设置背景颜色
|
1
|
app:parallax_color="#66ccff" |
设置标题内容
|
1
|
ioView.setTitle("hongbosb"); |
posted on 2015-05-04 10:25 wasdchenhao 阅读(103) 评论(0) 收藏 举报

浙公网安备 33010602011771号