Align view in the center of another view
<p>I have this layout:</p>
<p><a href="https://i.stack.imgur.com/B2bx5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B2bx5.png" alt="enter image description here" /></a></p>
<p>Which i have create with this code:</p>
<pre><code>&lt;ImageView
    android:src=&quot;@android:drawable/ic_menu_gallery&quot;
    android:layout_width=&quot;48dp&quot;
    android:layout_height=&quot;48dp&quot;
    android:id=&quot;@+id/BusinessLogoCircleImageView&quot;
    android:layout_alignParentTop=&quot;true&quot;
    android:layout_alignParentLeft=&quot;true&quot;
    android:layout_marginRight=&quot;16dp&quot;
    android:layout_marginLeft=&quot;16dp&quot;
    android:layout_marginTop=&quot;36dp&quot;
    android:layout_marginBottom=&quot;36dp&quot;
    android:layout_gravity=&quot;right|end&quot;
    android:background=&quot;#ff4fc3f7&quot; /&gt;
&lt;LinearLayout
android:layout_toRightOf=&quot;@+id/BusinessLogoCircleImageView&quot;
android:layout_width=&quot;match_parent&quot;
android:layout_height=&quot;wrap_content&quot;
android:gravity=&quot;center_horizontal&quot;
android:orientation=&quot;vertical&quot;&gt;
&lt;TextView
    android:text=&quot;Name&quot;
    android:layout_width=&quot;wrap_content&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:id=&quot;@+id/BusinessNameTextView&quot;
    android:background=&quot;@color/primary_color&quot;
    android:textSize=&quot;@dimen/Address_Text_size&quot;
    android:textColor=&quot;@color/white&quot;
    android:typeface=&quot;normal&quot; /&gt;
&lt;TextView
    android:text=&quot;Address&quot;
    android:layout_width=&quot;wrap_content&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:id=&quot;@+id/BusinessAddressTextView&quot;
    android:layout_below=&quot;@+id/BusinessNameTextView&quot;
    android:background=&quot;@color/primary_color&quot;
    android:textSize=&quot;@dimen/Address_Text_size&quot;
    android:textColor=&quot;@color/white&quot;
    android:typeface=&quot;normal&quot; /&gt;
&lt;TextView
    android:text=&quot;Website&quot;
    android:layout_width=&quot;wrap_content&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:id=&quot;@+id/BusinessWebsiteTextView&quot;
    android:layout_below=&quot;@+id/BusinessAddressTextView&quot;
    android:background=&quot;@color/primary_color&quot;
    android:textSize=&quot;@dimen/Address_Text_size&quot;
    android:textColor=&quot;@color/white&quot;
    android:typeface=&quot;normal&quot; /&gt;
    &lt;/LinearLayout&gt;
&lt;TextView
    android:text=&quot;5&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:id=&quot;@+id/CommentsCountTextView&quot;
    android:layout_below=&quot;@+id/BusinessLogoCircleImageView&quot;
    android:gravity=&quot;center&quot;
    android:background=&quot;@color/primary_color&quot;
    android:textSize=&quot;@dimen/Counter_Default_size&quot;
    android:textColor=&quot;@color/white&quot;
    android:typeface=&quot;normal&quot; /&gt;
&lt;TextView
    android:text=&quot;overall thanks&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:layout_below=&quot;@+id/CommentsCountTextView&quot;
    android:id=&quot;@+id/CommentsTextTextView&quot;
    android:gravity=&quot;center&quot;
    android:padding=&quot;3dp&quot;
    android:textSize=&quot;@dimen/SubCounter_Text_size&quot;
    android:textColor=&quot;@color/white&quot;
    android:background=&quot;@color/subtitle_color&quot;
    android:typeface=&quot;normal&quot; /&gt;
&lt;ListView
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;match_parent&quot;
    android:layout_below=&quot;@+id/CommentsTextTextView&quot;
    android:id=&quot;@+id/StaffTeamListView&quot; /&gt;
&lt;TextView
    android:id=&quot;@+id/emptyMessagesListTextView&quot;
    android:text=&quot;&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;match_parent&quot;
    android:layout_gravity=&quot;center&quot;
    android:gravity=&quot;center&quot; /&gt;
</code></pre>

<p>The problem is that i want the 3 textview to be in the vertical center of the imageview on the left. but i dont know how to do that, i have try with relative layout and also wrapping those textview on a linearlayout</p>
<p>but the problem is always the same, how i can set the linearlayout to center the content according to the image? if i can do this without linearlayout i would prefer it, keep in mind also that i want to display a small image (icon) on the left of every textview.</p>
<p>One solution that i have in mind is if i put the imageview and the linearlayout with the textviews into another linearlayout and allign then center vertical but is this the best solution?</p>