Reputation: 1115
I am trying to implement a TextView that is serving as a header for a ListView. I want to format it so that I have basically a title centered on the first line and then additional information on the lines following. How can I format the text/string to create this kind of formatting?
Upvotes: 1
Views: 443
Reputation: 12375
I suggest you use addHeaderView to specify you header. This way you can use separate XML layout to define the header.
You can then use gravity to be more specific with the layout
Upvotes: 2