Java Question TextView layout as a title

specci48

Well-Known Member
Licensed User
Longtime User
I'm working on a lib where I want to use some textviews as labels which should behave like those in a dialog title.
As you can see in the attachments, a short text is dislayed the "normal" way. If the text doesn't fit one row, the textsize gets slightly decreased and the hight gets increased to fit for the second row. If you set a really long title the view does not show a third row but "..." to indicate that not all information is displayed.

Does the android sdk provide a special layout for this or do I have to implement this on my own? If so, how can this be done?

Anyone?


specci48
 

Attachments

  • Title1.png
    Title1.png
    34.4 KB · Views: 291
  • Title2.png
    Title2.png
    41 KB · Views: 304
  • Title3.png
    Title3.png
    46.4 KB · Views: 286
Top