I came across this link :
Assign width to half available screen width declaratively
How to do the same in relative layout? Here\'s the code: Trying linea
In addition to urSus's answer, it's better to use a Space class instead of View:
View