Android Question .Left Property on the right side

Alexander Stolte

Licensed User

i'm expanding my chat a bit and would like to do the same as WhatsApp.
here is a picture, so I save that explain:

the width from the label to the text is not the Problem, the problem is, in the Designer i have a .Right Property and this Property is for example "5", if i now change the width of this label, then he does not keep his position on the right side but stay on the left side.

Now i dont have a .right property in the code and I have no idea what the .Left value for .Right "5" is in the activity.

How can I calculate this to get the appropriate .Left value, so that my layout looks normal again?

Greetings :)