Clear the left and right transparency of the functional unit flowing with android elipsize

Asked 2 years ago, Updated 2 years ago, 24 views

Hi, how are you?

On Android, if the text is long in TextView, it moves left like an electronic display.

The problem is that it flows from here. There's an opacity in the front of the left men and the back of the right, so the letters seem to flow.

Can't I not go into the offer at all here?

android

2022-09-22 21:41

1 Answers

By giving the setFadingEdgeLength value of TextView to 0, you can act as if you have disabled the blurring effect on both edges.

textView.setFadingEdgeLength(0);

FadingEdgeLength to 0 Result


2022-09-22 21:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.