我有一个TableLayout
在ScrollView
与背景图像。我面临的问题是,在自定义背景图像中,衰落边缘的位置超出了背景图像的白色边界。这不是很好。我怎样才能使淡出边缘出现在白色边框之前?ScrollView与背景图像的衰落边缘:文字截图
http://img444.imageshack.us/img444/6775/fadingedge.png
XML
<ScrollView android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="240dip"
android:layout_alignParentLeft="true"
android:layout_marginRight="9dip"
android:layout_marginLeft="10dip"
android:background="@drawable/bg"
>
<TableLayout android:id="@+id/table" android:layout_width="fill_parent"
android:layout_marginBottom="10dip" android:layout_marginTop="10dip"
android:layout_height="fill_parent">
<TableRow android:id="@+id/TableRow01" android:layout_marginLeft="20dip"
android:layout_marginTop="10dip" android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TableRow>
</TableLayout>
</ScrollView>
尝试使用android:fadingEdgeLength =“10dp”为您的scrollView。 –