Recently I came across a problem in android, that I developed an application, it's UI very much fit for android device's default font size (Normal).. which is being misaligned when device font size made to Tiny or Huge (Tested in Samsung devices)..How to overcome such problems? What type of UI design techniques need to be followed? If our text being set from Java file atleast we can do some adjustment using
float scale = getResources().getConfiguration().fontScale;
But if the text is being created from xml, How to handle it? Any ideas?