2011-01-26 10 views
0

バックグラウンドにシェイプxmlファイルを使用するティアビューがあります。シェイプTierListViewスクロールの問題

Drawable greyGradient = 
    this.getResources().getDrawable(R.drawable.grey_gradient); 
final TierListView tierView = (TierListView) findViewById(R.id.content_list); 
tierView.setBackgroundDrawable(greyGradient); 

私の問題は、リストをスクロールするたびに、TierListViewの端にあるストロークが消えることです。実際には、スクロールが停止するまでxmlファイル全体が機能しなくなります。タッチを離すと、ストロークが戻ります。どのようにしてストロークを保持し、リスト項目をスクロールさせるのですか?

<shape  
    xmlns:android="http://schemas.android.com/apk/res/android"  
    android:shape="rectangle" >  
<corners    
    android:topLeftRadius="5dip"   
    android:topRightRadius="5dip"   
    android:bottomLeftRadius="5dip"   
    android:bottomRightRadius="5dip" /> 
<gradient   
    android:angle="90"    
    android:endColor="#000000"    
    android:startColor="#3d3d3d"  
    android:type="linear" />  
<size   
    android:scaleType="center" />  
<stroke   
    android:width="2dip"   
    android:color="#d6d7d6" /> 
</shape> 

答えて

0

です。だから私はandroid:layout_weight = "1"を5に変更することで問題を解決しました。なぜこれが違いになるのか分かりません(ドキュメントはlayout_weightのままです)。