Display of the Textview

Asked

Viewed 24 times

0

Whenever I pass a certain character limit I can no longer see the text on the design screen, if I run the app I can see, but I would like to see it on this one so I don’t have to run the emulator.

inserir a descrição da imagem aqui

  • Try synchronizing the project again.

1 answer

0


You are viewing the preview in a Nexus 5X, try switching to another model with the larger screen, probably this is your problem!

  • I switched to TV and it appeared, but wouldn’t that be a problem? Because it was only the text adapt to the size and scroll down the screen the rest, getting cut. I even tried to add a Scrollview but the text continues like this, without seeming...

  • You have to declare the layout_height as wrap_content and use the attribute maxLines to delimit how many lines you want in your Textview... if you don’t want to break a line, you can use the ellipsize="end"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.