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 6987435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:56:12+00:00 2026-05-27T18:56:12+00:00

I have a custom tabbar on the bottom of my android view. I would

  • 0

I have a custom tabbar on the bottom of my android view.
I would like to have it “GONE” on the mainpage, because the main page content should take the entire height available.

But it seems to me, that even when I set visibility=”gone” the 100dp height of the tabbar is still taken into account when rendering the mainpage, as the content view is not of full height.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" android:gravity="center_horizontal">

    <FrameLayout android:layout_width='fill_parent'
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:orientation="vertical" android:id="@+id/content">

   </FrameLayout>

   <fragment android:name="MainActivity$TabBarFragment"
    android:visibility="gone"
    android:id="@+id/tabbar"
    android:layout_weight="1"
    android:layout_width="fill_parent"
    android:layout_height="100dp"/>

How can I get the ContentView to take full height at the mainpage?

  • 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-27T18:56:13+00:00Added an answer on May 27, 2026 at 6:56 pm

    Found it by myself.

    I am now using:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" android:gravity="center_horizontal">
    
    <FrameLayout android:layout_width='fill_parent'
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:orientation="vertical" android:id="@+id/content">
    
    </FrameLayout>
    
    <fragment android:name="MainActivity$TabBarFragment"
        android:id="@+id/tabbar"
        android:layout_weight="1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"/>
    

    and instead the TabBarFragment Layout File defines it’s height and defines visibility=gone.
    That works.

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

Sidebar

Related Questions

I have custom control like tabbar which displays many controllers some of them also
i have a custom tabBar class in which i switch three view controllers ,i
I have created a custom tabbar in my application (using TabHost and TabWidget ).
I have a Custom TabViewController that adds subviews to the current view depending on
I have a custom tabbar with custom tabbar items. Everything works as I want
I have custom button, with an image that I'd like to shift down within
I am trying to set a custom background image on my tabbar. I have
I have a Tabbar application, where clicking on a tabbar item, i should show
i have a view controller with some custom buttons in it, AND AFTER CLICKING
I have created a custom scrollable tabbar [scrollview with buttons over it] below navigationcontroller.

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.