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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:51:01+00:00 2026-05-30T08:51:01+00:00

I am not able to make the upper view scroll with listview. The top

  • 0

Here is what I want to do

I am not able to make the upper view scroll with listview. The top view has clickable elements. The top view has different elements like image,text1,text2,table. The bottom layout has ListView. The whole view is wrapped inside Relative Layout.

  • 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-30T08:51:02+00:00Added an answer on May 30, 2026 at 8:51 am

    Here is what I did . Hope it helps others who trip on this stuff.

    main_layout.xml (this is encapsulated inside relative layout)

    <ListView
        android:id="@+id/comments_list"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_above="@+id/comments_editText"
        android:layout_marginLeft="0dp"
        android:layout_marginRight="0dp"
        android:scrollbarStyle="outsideInset"
        android:cacheColorHint="#00000000"
        android:divider="@color/background_color"
        android:dividerHeight="1dp" />
    
    <EditText
        android:imeOptions="normal"
        android:inputType="text"
        android:id="@+id/comments_editText"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_margin="6dp"
        android:text="@string/write_comment" />
    

    Then I created a headerview.xml (encapsulated inside linear layout with android:layout_width=”wrap_content”
    android:layout_height=”wrap_content” )

    <My_Custom_view>
        android:id="@+id/comments_info"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" />
    
    <TextView
        android:id="@+id/comments_likeText"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="2dp"
        android:paddingTop="1dp"
        android:paddingLeft="10dp"
        android:scaleType="centerInside"
        android:drawableLeft="@drawable/like_icon"
        android:drawablePadding="4dp"
        android:textColor="@color/dark_blue_text_color"
        android:visibility="gone" />
    

    And then to on my Listfragmet (or listview) I did this

    View listHead = LayoutInflater.from(getActivity()).inflate(R.layout.headerview, null);
    commentsListView = (ListView)root.findViewById(R.id.comments_list);
    commentsListView.addHeaderView(listHead);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not able to make a clear decision on this one. I am
I am not able to make this out: Between eliminates use of >= and
I'm not being able to make this line work with Tk import os while(1):
I am not able to make more than one request at a time in
I am still not able to make phone call using previous answer. I am
I am not able to make the overflow hidden(horizontally) take effect when I apply
I am not able to make out whatrs wrong with this piece of code
In my Ipad application I use a popover but I'm not able to make
The app keeps crashing, and I'm not able to make any sense out of
I'm new to Spring and I'm not able to make the transaction propagation in

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.