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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:08:22+00:00 2026-06-03T00:08:22+00:00

I need to show some data in a grid-like format. For that purpose, I

  • 0

I need to show some data in a grid-like format. For that purpose, I am using a ListView and I have a separate XML layout defined for ListViewROW.

Main.xml:

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/newback" >

    <TableLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >
        <Tablerow> SOME OTHER CONTROLS HERE  </Tablerow>
        <Tablerow>
            <ListView
                android:id="@+id/mylistview"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:padding="10dp">
            </ListView>
        </Tablerow>
    </TableLayout>
</TableLayout>

ListViewRow.xml

<TableLayout
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"
    android:orientation="vertical"
    android:weightSum="1">

    <TableRow
        android:id="@+id/tableRow1"
        android:layout_width="fill_parent"
        android:layout_height="60dp"
        android:weightSum="1">

        <TextView
            android:id="@+id/col1"
            android:layout_width="100dp"
            android:layout_height="50dp"
            android:clickable="true"
            android:padding="5dip"
            android:gravity="left"/>

            <TextView  android:id="@+id/col2"/>
            <TextView  android:id="@+id/col3"/>
            <TextView  android:id="@+id/col4"/>

            <Spinner
                android:id="@+id/cmbOptions"
                android:layout_width="100dp"
                android:layout_height="50dp"
                android:clickable="true"
                android:padding="5dip"
                android:gravity="left"
                android:drawSelectorOnTop="true"
                android:prompt="@string/optionPrompt"/>
        android:text="" />

        <ImageView
            android:id="@+id/imagecorrectivedocument"
            android:layout_width="35dp"
            android:layout_height="35dp"
            android:background="@drawable/crane_ins"
            android:clickable="true"/>
    </TableRow>
</TableLayout>

Problem:

The problem is that in the resultant grid, the spinner control is not fully visible. Please see the screen shot:

Screen shot.

How do I fix this problem?

  • 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-03T00:08:23+00:00Added an answer on June 3, 2026 at 12:08 am

    In the XML for the spinner, try:

    android:layout_gravity="center_vertical"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got problem. I'm using windows.forms ListView to show some data and I need
I am using non-editable JTextPane to show some data in HTML format. I have
In our application, we have some forms which need to show some data specifically
Hi I'm using jqgrid to show some information in a grid. But I have
I need to show some data in a textview coming from coredata (like this
I need to show some information in a graph, the data is held in
In my app I have need to trigger show some custom view when status
I need to create a slide show of some images that can go full
For a few days a have some problem. I need to show simple ProgressBar
I have a report that within its grid needs to show details for each

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.