title: Android relative layout dynamic content overlaps
body: <p>Here is the layout file. The dynamic  larger content is overlapping with the LinearLayout. The issue is visible when the dynamic content contains larger text-</p>
  <pre><code> &lt;data&gt;
      &lt;variable
          name=&quot;searchItem&quot;
          type=&quot;com.demo.search.core.viewmodels.itemviewmodels.UserSearchResultItemViewModel&quot;/&gt;
  &lt;/data&gt;
  
  &lt;RelativeLayout
      android:id=&quot;@+id/search_result_item_container&quot;
      style=&quot;@style/search_result_item_container&quot;
      android:background=&quot;@{searchItem.layoutBackground}&quot;
      android:contentDescription=&quot;@{searchItem.contentDescription}&quot;
      android:onClick=&quot;@{searchItem::onClick}&quot;
      android:orientation=&quot;horizontal&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;&gt;
  
     &lt;include
          android:id=&quot;@+id/user_details&quot;
          layout=&quot;@layout/search_result_user_details&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentStart=&quot;true&quot;
          android:layout_centerVertical=&quot;true&quot;
  
          bind:searchItem=&quot;@{searchItem}&quot;/&gt;
      &lt;LinearLayout
          android:id=&quot;@+id/search_result_user_icons_container&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_gravity=&quot;center_vertical&quot;
          android:orientation=&quot;horizontal&quot;
          android:layout_alignRight=&quot;@+id/user_details&quot;
          android:layout_alignTop=&quot;@+id/user_details&quot;&gt;
          &lt;ImageButton
              android:id=&quot;@+id/search_result_user_video_call_button&quot;
              android:layout_width=&quot;@dimen/size_4x&quot;
              android:layout_height=&quot;@dimen/size_4x&quot;
              android:layout_gravity=&quot;center_vertical&quot;
              android:layout_margin=&quot;@dimen/call_buttons_margin&quot;
              android:padding=&quot;@dimen/padding_10&quot;
              android:background=&quot;?attr/selectableItemBackgroundBorderless&quot;
              android:contentDescription=&quot;@string/action_video_call&quot;
              android:onClick=&quot;@{() -&gt; searchItem.onVideoCallButtonClick()}&quot;
              android:scaleType=&quot;center&quot;
              android:visibility=&quot;@{searchItem.shouldShowVideoCallButton()}&quot;
              app:srcCompat=&quot;@drawable/icn_video_bluepurple&quot;/&gt;
    --------- has bunch of other buttons too -----------
  
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Could you please help?
  Here is the issue image -
  <a href="https://i.stack.imgur.com/6NB1q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6NB1q.png" alt="enter image description here" /></a></p>