Android Question Removing/resetting anchors

David Martinez

Member
Licensed User
Longtime User
Sorry if this is a dumb question but i can't figure out or find the answer anywhere...I know it's simple.

How do you reset/remove anchors in the designer after they have been set?

Any help would be appreciate it. Thanks
 

klaus

Expert
Licensed User
Longtime User
Simply select what you want in the drop down list !

upload_2016-3-14_20-54-5.png
 
Upvote 0

David Martinez

Member
Licensed User
Longtime User
Thank you Klaus for your quick response.

I think that is my issue...I want set it to nothing. Not Right, Left or Both.

I believe the views default to Left and Top. Maybe Left and Top is nothing. It's a little confusing.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I want set it to nothing. Not Right, Left or Both.
You cannot do this!
And for me it makes no sense, a view must have a dimension and a position.
So the default setting is Left, Top, Width and Height, which sets the Width and the Height and the position of the top left corner.
If you set the Horizontal anchor to Right means that you set the Width, Height and the position of the upper right corner.
With the Left, Right, Top and Bottom anchors you define to which corner the position refers to.
The Both anchors are useful to fill the space, adapt the width and / or height to the different widths, heights and different width/height ratios of the devices. It means that you define the left and right position and adapt the width to the screen width and / or you define the top and bottom position and adapt the height.
 
Upvote 0
Top