Normally, if you set the
right property, for example, it sets the right side of your object that value from the right side of the screen. However, I want to do this, but I want it to set the center of your object that value from the right.
The reason is so that I can center text under an image that isn't exactly in the center of the screen, because if, for example, I set the
right property of both the image and text to
50, the text would not be centered under the image.
If you will not provide left and right property to the view , it will automatically set in center of screen or view on which it is added.
- Suppose if image is added to either view or window ,so do not provide right or left property to image view , it will automatically set in center of screen or view ,corrosponding to object on which you added.
Think you can help? Login to answer this question!