Closed anjanasuvariya closed 6 years ago
Hi,
First of all, thank you for this great library. I'm trying to use your library for setting GridLayout Textview size. However, we noticed that when we run this in different mobiles, sizes very too much.
Code I've written is given below. Please help me.
txtSwitch.setTextSize(getResources().getDimension(R.dimen._7ssp));
You should use: txtSwitch.setTextSize(TypedValue.COMPLEX_UNIT_PX, getResources().getDimensionPixelSize(R.dimen._7ssp));
Hi,
First of all, thank you for this great library. I'm trying to use your library for setting GridLayout Textview size. However, we noticed that when we run this in different mobiles, sizes very too much.
Code I've written is given below. Please help me.
txtSwitch.setTextSize(getResources().getDimension(R.dimen._7ssp));