2012-02-01 16 views

回答

0

我在這次Google小組討論的幫助下設法解決了這個問題。 https://groups.google.com/forum/?fromgroups#!topic/android-developers/F7_zE_k9KO8

我最終創建一個自定義視圖並重載getAnimation()女巫返回null。

public class HeaderSearchNoAnimationVIew extends LinearLayout { 
public HeaderSearchNoAnimationVIew(Context context) { 
    super(context); 
    LayoutInflater i = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 
    i.inflate(R.layout.list_header_search, this); 
} 
@Override 
public Animation getAnimation() { 
    return null; 
} 
} 
0

如果它是一個始終存在的靜態視圖,是否考慮過使用單獨的視圖而不是列表視圖的標題部分?

+0

不幸的是,標題視圖必須與列表的其餘部分一起滾動。 – pzagor2 2012-02-02 22:27:09