For a view in android, I need to set margin in float value.
I'm using this, but I'm able to set margin in int only.
lp.setMargins(50, 35, 0, 0);
starImage.setLayoutParams(lp);
How to pass float values for margin of a view ?
For a view in android, I need to set margin in float value.
I'm using this, but I'm able to set margin in int only.
lp.setMargins(50, 35, 0, 0);
starImage.setLayoutParams(lp);
How to pass float values for margin of a view ?