In my application i am displaying a CardView which has textview (account title). The card view height i am calculating based on device width.
Since i am setting the cardview height based on device width, i want to change the font size of textview (account title) to make font size consist based on card height.
How to we apply font sizes for textview based on device width and height?
In your project resources create different values directories and call it for example
values-h600pand put on it the dimensions resources that you will use on your styles or layouts for screens with height >= 600dp. That's the standard way to do it. Better explained here :https://developer.android.com/training/multiscreen/screensizes