Hi,
I am trying to work out how to scale the text size in my layout based on the device if it has 'Large Text' enabled in the Android settings?
I have been watching Erels video tutorial on the scaling but can't work out how to do this.
I am testing this using my Nexus 5.
For testing I created a small sample on what I am trying to do..
In the image below, the screenshot on the left is with 'Large Text' turned off (default) which is what I want. If I enable 'Large text' from the Android accessibility settings, then it shows the text larger but I want it to auto scale down to the normal text size like on the left screenshot. (In other words, I want it to look like the screenshot on the left regardless what text size the user has set on the Android system)
I have my layout variant set to 320 x 480, scale= 1 (160 dpi)
In the designer script I only have AutoScaleAll.
In the designer, I only have a label.
Is there a way for my app to ignore if the user has 'large text' enabled and scale it to default and not large text ?
I am trying to work out how to scale the text size in my layout based on the device if it has 'Large Text' enabled in the Android settings?
I have been watching Erels video tutorial on the scaling but can't work out how to do this.
I am testing this using my Nexus 5.
For testing I created a small sample on what I am trying to do..
In the image below, the screenshot on the left is with 'Large Text' turned off (default) which is what I want. If I enable 'Large text' from the Android accessibility settings, then it shows the text larger but I want it to auto scale down to the normal text size like on the left screenshot. (In other words, I want it to look like the screenshot on the left regardless what text size the user has set on the Android system)
I have my layout variant set to 320 x 480, scale= 1 (160 dpi)
In the designer script I only have AutoScaleAll.
In the designer, I only have a label.
Is there a way for my app to ignore if the user has 'large text' enabled and scale it to default and not large text ?