I have tried several links for remove the selected tab in FragmentTabHost
but does not work for me .
First link
Second link
I have tried this also in my Xml but it is not working
android:tabStripEnabled="false"
And it is my layout for the fragmenttabhost.
<FrameLayout
android:id="@+id/realtabcontent"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="0dp"
/>
<android.support.v4.app.FragmentTabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:background="@drawable/top_bg"
app:tabIndicatorColor="#000"
android:tabStripEnabled="false"
app:tabIndicatorHeight="0dp"
android:layout_height="60dp"
>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0" />
<LinearLayout
android:id="@+id/tab_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:showDividers="none"
android:orientation="horizontal"
android:weightSum="5" >
<ImageView
android:id="@+id/genralTabBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:padding="15dp"
android:background="@drawable/button_1_off" />
<ImageView
android:id="@+id/treandingTabBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:padding="12dp"
android:background="@drawable/button_2_off" />
<ImageView
android:id="@+id/profileTabBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:padding="12dp"
android:background="@drawable/button_3_off" />
</android.support.v4.app.FragmentTabHost>
And in my devices selected tab look like (Plz check images)
Moto E device