I'm experiencing a strange behaviour with textviews hosted into a TableRow
: it looks like as they are rendered using the a smaller font than the rest of the app.
I KNOW that it's better to use an XML and inflate it, so it's what I'm going to do next, but now I am just curious to understand what's happening...
I have an XML with a TableLayout
. Inside there is a TableRow
. Inside the TableRow
, a TextView
. I have defined a style to have all the TextView
in my app using the textAppearanceMedium
style. It works.
Now, I add new TableRow
(each one with its own TextView
) programmatically: what happens is that all the TextView
in the new rows are using a smaller font then the first one. And even if I explicitly set the textAppearanceMedium
, nothing happens.
It must be something obvious. What I'm missing?
Thx all in advance.