Hi,
I'm trying to set height and width to Relative Layout Programmaticaly:
final RelativeLayout Frame1 = (RelativeLayout) findViewById(R.id.Frame1);
Frame1.getLayoutParams().width = X;
Frame1.getLayoutParams().height = Y;
Works on smartphone but crashes on Ipad.
I tried also...
Hi,
I have a gridView of items that represent options for answers to a question.
If the correct answer is chosen from the grid, I want it to be marked as correct (and the same for incorrect answer). Is there an easy way to this without changing the images programmatically?
Thank you.
Hi,
I have an Image of size 100X100 px and dpi 96. I want to make sure that the image is good enough for all screen sizes. I don't show it on all the screen, but just on a small part of it.
On Nexus 5x which has 683X411 dp screen size, I show the picture on 120X120 dp.
On screen size of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.