【开源】BooheeScrollView

BooheeScrollView

 

使用说明:

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));

 

相关代码

  • ImageCoverFlow
  • 一个搜狐视频画廊效果的demo

posted on 2015-04-27 09:42  wasdchenhao  阅读(198)  评论(0)    收藏  举报

导航