2
I have a View in which I am programmatically defining its somersault and width in this way:
LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) linear.getLayoutParams();
params.height = 50;
params.width = 50;
linear.setLayoutParams(params);
However I have two devices with different resolutions, and this makes for each device, my View have different sizes defining this way: height = 50.
How do I make mine View has a size proportional to my resolution?