Home > Mobile >  When Android TextView long text display fade
When Android TextView long text display fade

Time:09-18

Android TextView text is too long when fade according to

Don't know how to implement, big brand, please

CodePudding user response:

Simple point, a view on the right side of the cover, filling gradients

CodePudding user response:

But show beyond textview part is displayed in the form of ellipsis, how make

CodePudding user response:

Ellipsize set ellipsis format

CodePudding user response:

Demand is beyond part can not be in the form of ellipsis display, with a fade effect disappeared, strives for the great god

CodePudding user response:

Have returned to the above, fade effect on the right side covered with a transparent gradient of the view that remove the ellipsis in the layout and the ellipse=none

CodePudding user response:

Perfect
 
Android: layout_width="match_parent"
Android: background="@ null"
Android: singleLine="true"
Android: requiresFadingEdge="horizontal"
Android: fadingEdgeLength="100 dp"
Android: visibility="visible"
Android: cursorVisible="false"
Android: focusable="false"
Android: textSize="28 sp"
Android: text="1 fasdfasdf3456fsdfasdfasdfas"
Android: layout_height="100 dp/& gt;"

CodePudding user response:

Because we want to do background in cover of fuzzy mode. So can't map in the form of implementation, not with the view to realize, is there any other way, o god

CodePudding user response:

refer to 7th floor hairline sadness response:
because we want to do background in cover of fuzzy mode. So can't map in the form of implementation, not with the view to realize, is there any other way, a great god

My answer so perfect, have what problem?
  • Related