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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:20:12+00:00 2026-05-24T07:20:12+00:00

I have a custom list adapter inside of a TableLayout. This TableLayout is nested

  • 0

I have a custom list adapter inside of a TableLayout. This TableLayout is nested inside a of a LinearLayout.

The list adapter expands if new childviews are added to the list. I want the size of the TableRow to increase dynamically when the size of the list adapter increases. And the buttons pushed down when the list grows.

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

        <LinearLayout">
            <!-- Draw header + sub title -->
            <LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent" >
                <TextView ></TextView>
                <TextView ></TextView>
            </LinearLayout>

            <LinearLayout android:orientation="horizontal">
                <ImageView />
                <LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent" 
                    android:layout_weight="1">
                    <TableLayout android:layout_height="fill_parent" android:layout_width="fill_parent"  android:layout_weight="1">
                        <TableRow android:id="@+id/tr1">
                            <CustomList android:id="@+id/mainview"
                                ndroid:layout_height="wrap_content" android:layout_width="wrap_content" />
                        </TableRow>
                        <TableRow android:layout_height="wrap_content"
                            android:layout_width="match_parent">
                            <Button android:layout_width="wrap_content" android:id="@+id/button1"
                                android:text="@string/buttonPrevious" android:layout_height="wrap_content">
                            </Button>
                            <Button android:layout_width="wrap_content" android:id="@+id/button2"
                                android:text="@string/buttonNext" android:layout_height="wrap_content"></Button>
                        </TableRow>
                    </TableLayout>
                </LinearLayout>
                <ImageView  />

        </LinearLayout>
    </ScrollView>

Do I have to do change something like change the way layouts are inflated in my custom list adapter or anything else?

  • 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-24T07:20:14+00:00Added an answer on May 24, 2026 at 7:20 am

    Please read the following question and answers. I believe this may be the same thing you are trying to achieve

    Android ListView that does not scroll?

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

Sidebar

Related Questions

I have a custom list, and I've added a 'Page Image' field by clicking
I have a custom list adapter: class ResultsListAdapter extends ArrayAdapter<RecordItem> { in the overridden
I have implemented a custom list view which looks like the twitter timeline. adapter
I have created a custom list view and created my own adapter class I
We have created custom listview by using the Base adapter. List view contains Text
I have a list view with custom adapter, with an Image Button and a
I have a AutoCompleteTextView and a custom AutoCompleteTextView adapter. my list has 20 items
I have a ListView with a custom list adapter (that extends BaseAdapter). My list
I have a custom adapter extended from the SimpleCursorAdapter. Using this I'm binding a
i have a custom adapter for an arraylist. <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=wrap_content

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.