It's because you're asking new_message_space
's position to be relative to the RelativeLayout
message_top_layout
, which you can't do because new_message_space
is within message_top_layout
.
Try removing it, aligning it according to its parent or making it relative to one of its siblings (a view within the same parent) such as new_char_count_text
.