chnage tab text position after setvisibility
<p>I have a <code>tablayout</code> in android where i need to show a bullet like text sometimes and hide this bullet as needed. i design below layout for each tab item:</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal" android:layout_width="match_parent"
    android:layout_height="match_parent"

    android:gravity="bottom"
    &gt;
&lt;TextView

    android:textColor="@color/textColorPrimary"
    android:layout_marginRight="2dp"
    android:id="@+id/text_tab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    /&gt;
    &lt;TextView
        android:text="•"
        android:textColor="@color/Notify"
        android:textSize="@dimen/badget_size"
        android:id="@+id/text_tab_counter"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

       /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>the problem is when i <code>setVisibility</code> of <code>text_tab_counter"</code> to <code>INVISIBLE</code> or <code>GONE</code>, <code>text_tab_counter"</code> move down . how can i design this layout to prevent this unexpected behavior?</p>