I’m trying to add a View to a Layout and put the View at the bottom of the screen.
here is my code
RelativeLayout game = new RelativeLayout(this);
game.addView(new Menu(this));
game.addView(ad.getAd());
game.setGravity(Gravity.BOTTOM);
setContentView(game);
But the View gets printed on the top of the screen, why isnt setGravity working?
Gravity don’t works in RelativeLayout.
Try this: