Android Question A label which has a "read more"?

Hanz

Active Member
Hello,

Do we have a label, for b4a, suitable for paragraph and initially does not show the entire paragraph, maybe, half of it, then, it has at the end "read more" and when you click it, that's the time it will show the rest?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
This will never be a built-in feature of a label. You need to implement it yourself. You can build such custom view quite easily.

You just need a panel with two labels. Measure the required height with StringUtils. If the parent panel is too short then show the second label with the Read More text. It should also have a vertical gradient.
 
Upvote 0
Top