Note that there are some explanatory texts on larger screens.

plurals
  1. POTabs - Without using TabHost
    text
    copied!<p>I want to develop tabs like the attached image. But, do not want to use Tabhost for this.Any help is highly Appreciated.<img src="https://i.stack.imgur.com/gxkC6.png" alt="enter image description here"></p> <p>Below is the XML am using:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="50dp" android:background="#0C3666" android:orientation="horizontal" android:weightSum="1.0" &gt; &lt;TextView android:id="@+id/news_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.25" android:background="@drawable/tab_drawable" android:clickable="true" android:gravity="center" android:padding="10dp" android:text="NEWS" android:textColor="@color/main_white" android:textSize="14dp" /&gt; &lt;TextView android:id="@+id/quotes_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.25" android:background="@drawable/tab_drawable" android:clickable="true" android:gravity="center" android:padding="10dp" android:text="QUOTES" android:textColor="@color/main_white" android:textSize="14dp" /&gt; &lt;TextView android:id="@+id/editor_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.25" android:background="@drawable/tab_drawable" android:clickable="true" android:gravity="center" android:padding="10dp" android:textColor="@color/main_white" android:textSize="14dp" /&gt; &lt;TextView android:id="@+id/st_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.25" android:background="@drawable/tab_drawable" android:gravity="center" android:padding="10dp" android:text="ST" android:textColor="@color/main_white" android:textSize="14dp" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Above is the layout. I want to know how i can draw the separtor line "|" between tabs.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload