전 연구를 해봤는데 적절한 대답을 찾을 수 없었습니다.TextView의 마지막 몇 줄을 페이드 아웃
나는 또한 내 자신이 달성 할 수없는, 그래서 특정 maxHeight
있는 TextView
을 가지고 내가 만들고 있어요 InfoWindowDialog
전망을 가지고
를 좀 도와주십시오.
<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>
그리고이 예제의 마지막 몇 줄과 비슷한 달성하고자 :
을 나는 솔루션을 배치하여 Fade bottom of a textview android
언급 시도 android:requiresFadingEdge="vertical
" 및 android:fadingEdgeLength="32dp"
및 결과가 없었습니다.
텍스트가있는 단추와 투명도가있는 배경 단추를 사용하지 않는 이유는 무엇입니까? 그것은 당신이 원하는 것을 성취하는데 도움이 될 수 있습니다. – Rahil2952
"궁극적으로"더 많은 "라벨이 꼭대기에 있다는 것을 – Firecat
위에 묻는 버튼이 없었던 무언가를 찾고있었습니다 ... – njzk2