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

  • Home
  • SEARCH
  • 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 8269957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:24:23+00:00 2026-06-08T06:24:23+00:00

Currently i am working in simple Android application, using Tabhost, to create three tabs

  • 0

Currently i am working in simple Android application, using Tabhost, to create three tabs and the first tab using RelativeLayout to create ListView, but the ListView not visible, , so i tried to set background color (white) for ListView, shown only white color the ListView not shown, but the same result comes, so please help me, How to set a list view in Tabbar in Android.

Thanks in Advance

I tried this

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/tabhost"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">

  <RelativeLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <TabWidget android:id="@android:id/tabs"
      android:layout_width="fill_parent"
      android:layout_alignParentBottom = "true"
      android:layout_height="wrap_content"
     />

    <FrameLayout android:id="@android:id/tabcontent"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent">




    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/tab1"

    android:layout_width="fill_parent"
    android:layout_height="200dip" >

    <ListView
        android:id="@+id/edittext01"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:background="#ffff"
        android:paddingTop="10px" />

</RelativeLayout>
  • 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-06-08T06:24:25+00:00Added an answer on June 8, 2026 at 6:24 am

    you actually need to specify ListView position according to tabs as you want them above then use RelativeLayout property android:layout_above="id_of_FrameLayout_containing_ListView " which displays your list as you want.

    And for content within ListView check that items you added are added correctly and if using AdapterClass for drawing each List Item..

    hope this explanation works for you…

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

Sidebar

Related Questions

I am currently working on a simple web application through Google App engine using
I'm currently working on a simple web application where users each have their own
I am new to android development. Currently i am working on an application which
I'm currently working on a Account Management Activity for my Android application and I'm
I'm new to android game development. I currently working on a simple android app
I'm rather newbie on Android, and I'm working on a simple application to get
Currently a team of developers is working on Android application and during the development
I'm currently working my way through the book Teach Yourself Android Application Development in
Currently I am working on an Android application that is dynamically creating controls. Everytime
I'm currently working on a cross-platform application (actually a game using libgdx ), and

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.