【开源】BooheeScrollView
BooheeScrollView
- https://github.com/zhaozhentao/BooheeScrollView
介绍:
模仿薄荷食物图书馆效果,感觉是一个指示器处理得不错的一个Gallery运行效果:
![]()
使用说明:
step 1
在布局文件里实现类似布局
<com.zzt.library.BooheeScrollView android:layout_alignParentBottom="true" android:id="@+id/horizon" android:overScrollMode="never" android:layout_width="match_parent" android:layout_height="wrap_content"> <com.zzt.library.BuildLayerLinearLayout android:id="@+id/linear" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"> </com.zzt.library.BuildLayerLinearLayout> </com.zzt.library.BooheeScrollView>
step 2
根据合适的大小创建出要显示的内容 并添加到 buildLayerLinearLayout中
BezelImageView imageView2 = new BezelImageView(this); imageView2.setLayoutParams(new LinearLayout.LayoutParams(width, height)); buildLayerLinearLayout.addView(imageView2); imageView2.setImageBitmap(decodeSampledBitmapFromResource(getResources(), R.drawable.pic2, width, height)); imageView2.setMaskDrawable(getResources().getDrawable(R.drawable.roundrect));
posted on 2015-04-27 09:42 wasdchenhao 阅读(198) 评论(0) 收藏 举报

浙公网安备 33010602011771号