2013-06-03 24 views
2

我想使用StickyListHeadersListView滚动图像。我的代码像如何使用StickyListHeadersListView滚动Imageview

<ImageView 
    android:id="@+id/img_banner" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_below="@+id/rel_title_bg" 
    android:background="@drawable/banner_img" /> 

<com.abc.StickyListHeadersListView 
    xmlns:slh="http://schemas.android.com/apk/res-auto" 
    android:id="@+id/list" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:layout_above="@+id/rel_footer" 
    android:layout_below="@+id/rel_title_bg" 
    android:clipToPadding="false" 
    slh:areHeadersSticky="true" 
    /> 

所以,请帮助我如何解决它。 非常感谢。

回答

0

这里是一个git_hub库 你只需要在你的eclipse中导入它作为一个项目并添加到您的项目作为库

https://github.com/emilsjolander/StickyListHeaders 

这会是一个很好的知识,为您使用外部库。祝你好运。

+0

我使用那个,但我想滚动顶部图像与滚动listview.for例如,假设我滚动listview它将滚动与他的顶部图像像那样。 –