2013-06-03 28 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它將滾動與他的頂部圖像像那樣。 –