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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:34:21+00:00 2026-06-16T20:34:21+00:00

I have to develop one android application. Here i have to develop grid view

  • 0

I have to develop one android application.

Here i have to develop grid view layout like:

<?xml version="1.0" encoding="utf-8"?>
  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:id="@+id/Layout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
    <TextView
    android:id="@+id/status"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"

    android:text="Mercuryminds Shoppingcart Application"

    android:textAppearance="?android:attr/textAppearanceMedium"
    android:textColor="#040404"
    android:gravity="center" />

<GridView
    android:layout_height="wrap_content"
    android:id="@+id/gridView1"
    android:layout_width="match_parent"
    android:numColumns="auto_fit"

    android:horizontalSpacing="10dp"
    android:verticalSpacing="10dp">
</GridView>

 <include        
 android:id="@+id/footer"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    layout="@layout/footer" />


   </LinearLayout>

Here the layout footer is tab bar.

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

<LinearLayout
    android:layout_width="match_parent"
    android:id="@+id/linearLayout1"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <TabWidget
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@android:id/tabs">
    </TabWidget>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@android:id/tabcontent">
    </FrameLayout>
</LinearLayout>
    </TabHost>

But i have to run the app means the tab bar is not display on my main view.whats wrong in my layout file.please help me.

  • 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-16T20:34:22+00:00Added an answer on June 16, 2026 at 8:34 pm

    add layout_weight="1" to your gridView and layout_height="0dp"

    like this

      <GridView
            android:id="@+id/gridView1"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:horizontalSpacing="10dp"
            android:numColumns="auto_fit"
            android:verticalSpacing="10dp" >
        </GridView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have develop one android application. Here i have to set the tabbar bottom
I have develop one android application. Here i have to pass the value from
Here i develop one android application and i have one image with size 197*253,
I have to develop one android application.The app is performs retrieve data from mysql
I have to develop one android send mail use javamailapi application. message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(mercy.krishnaveni@gmail.com,demo@mercuryminds.com)); Using
Hi i have develop an android application in which i want to prevent user
I occur a problem when develop a application on android. There have two image
I have just started to develop a 2D Android game, something like squash a
how is support all platform version on my single android app.i have created one
i have develop one application in which i want to play gif animation. for

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.