I've been researching all over, I was unable to find a proper answer.
I also can't achieve this on my own, so please help me out
I have a InfoWindowDialog
view I'm creating, which has a TextView
, that has a certain maxHeight
.
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<TextView
android:id="@+id/txt_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LONG_TEXT_WHICH_HAS_A_FEW_LINES..."
android:maxHeight="50dp"/>
</RelativeLayout>
And I want to achieve something similar to the last few lines of this example:
I have tried a solution mentioned Fade bottom of a textview android
By placing android:requiresFadingEdge="vertical
" and android:fadingEdgeLength="32dp"
and had no results.