2

我想用 StickyListHeadersListView 滚动图像。我的代码喜欢

 <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" 
    />
4

1 回答 1

0

这是 git_hub 上的一个库,您只需将其作为项目导入 Eclipse 并作为库添加到项目中

https://github.com/emilsjolander/StickyListHeaders

这将是您使用外部库的好知识。祝你好运。

于 2013-06-03T07:13:46.733 回答