【发布时间】:2011-09-11 04:12:33
【问题描述】:
我在 FrameLayout 中有 TextView,我想在 TextView 上绘制 FrameLayout 的渐变边缘,以指示文本可以垂直扩展。 FrameLayout的渐变效果如何绘制?
布局片段:
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="@dimen/list_item_collapsed"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</FrameLayout>
【问题讨论】:
-
解决方案:只需要为TextView指定fadingEdge和fadingEdgeLength即可。
标签: android