Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6380113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:13:32+00:00 2026-05-25T02:13:32+00:00

I have a custom Tab Indicator to make my tabs. However, I want to

  • 0

I have a custom Tab Indicator to make my tabs. However, I want to remove the bottom border below the tab. Both the single black line, and the greyscale shadow. I’m not even sure what is generating the greyscale fade. It’s possibly TabWidget, FrameLayout, or the children’s LinearLayout.

enter image description here

For reference, I’ve tried setStripEnabled(false);
Another potential difficulty is that I’m creating the TabHost & TabWidget programmatically rather than using a layout file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:13:33+00:00Added an answer on May 25, 2026 at 2:13 am

    When I use tabs, I normally just hide the tabwidget tag by setting android visibility as gone.

    And add buttons to act as the tab buttons like

    <?xml version="1.0" encoding="utf-8"?>
    <TabHost xmlns:android="http://schemas.android.com/apk/res/android" 
        android:id="@android:id/tabhost" android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" 
            android:layout_height="fill_parent">       
            <FrameLayout android:id="@android:id/tabcontent" 
                android:layout_width="fill_parent" android:layout_height="0dip"
                android:layout_weight="1.0"/>
            <FrameLayout android:layout_width="fill_parent" 
                android:layout_height="wrap_content">
                <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" 
                    android:layout_height="wrap_content"
                    android:visibility="gone"/>
                <LinearLayout android:layout_width="fill_parent" 
                    android:layout_height="64dip">
                    <Button android:layout_height="fill_parent" android:layout_width="0dip" 
                        android:layout_weight="1.0"
                        android:background="@drawable/ic_tab_artists" 
                        android:id="@+id/artist_id" android:onClick="tabHandler"/>
                    <Button android:layout_height="fill_parent" android:layout_width="0dip" 
                        android:layout_weight="1.0"
                        android:background="@drawable/ic_tab_artists" 
                        android:id="@+id/album_id" android:onClick="tabHandler"/>
                    <Button android:layout_height="fill_parent" android:layout_width="0dip"     
                        android:layout_weight="1.0"
                        android:background="@drawable/ic_tab_artists" 
                        android:id="@+id/song_id" android:onClick="tabHandler"/>
                </LinearLayout> 
            </FrameLayout>
        </LinearLayout>
    </TabHost>
    

    and I add a button click handler

    public void tabHandler(View target){
        artistButton.setSelected(false);
        albumButton.setSelected(false);
        songButton.setSelected(false);
        if(target.getId() == R.id.artist_id){
            tabHost.setCurrentTab(0);
            artistButton.setSelected(true);
        } else if(target.getId() == R.id.album_id){
            tabHost.setCurrentTab(1);
            albumButton.setSelected(true);
        } else if(target.getId() == R.id.song_id){
            tabHost.setCurrentTab(2);
            songButton.setSelected(true);
        }
    }
    

    This should remove all the lines and grayscale.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom tab layout which look like this,I want to make
Problem I have a custom tab control using Chrome-shaped tabs that binds to a
I want to build a custom tab bar for mya app and I have
i have this custom tab widget.. before i've customized it, by default i have
This may be have a better name than custom tab completion, but here's the
I have tab controller created through storyboards with a custom implementation (simple buttons and
I have custom classes that I currently instantiate within App.xaml as resources. I want
I have a JTabbedPane with a custom tab component. That component contains a JLabel
I have a custom tab control, which displays a frame inside the TabItem, and
I have a complicated structure where I have a custom tab-bar controller that houses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.