you need to retreat from the lower right corner, but if you set any value to the bottom and right view, then nothing happens, and the indent goes only if you put top and left
RelativeLayout.LayoutParams paramsImageView = new RelativeLayout.LayoutParams( 80, 80); paramsImageView.setMargins(0,0,320,320); hintImageView.setLayoutParams(paramsImageView);