Android Question Scaling views in code to match autoscale in designer

Rusty

Well-Known Member
Licensed User
Longtime User
I am dynamically creating buttons, radio buttons, etc. in code and adding them to my activity depending upon user interactions.
When I create views and add text to them, the scale of the text is not the same as that of similar views added in the designer.
Is there a way to add a button (for example) with text and have the font size match that of similar buttons created within the designer? (I use AutoscaleAll in the designer)
Regards,
Rusty
 
Top