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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:27:26+00:00 2026-05-30T20:27:26+00:00

I am trying to put titles on a ListView that is generated from a

  • 0

I am trying to put titles on a ListView that is generated from a database in android.

In the historyrow.xml

I have

<TextView
        android:id="@+id/historyTitle"
        android:layout_width="fill_parent"
        android:layout_height="20dip"
        android:text="Title"/>
<ListView 
        android:id="@+id/android:list"
        android:paddingTop="20dip"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"/>

Which just displays the historyTitle text History. However, If I remove the TextView then the ListView displays correctly with a 20dip padding at the top where I would like the titles to be. Is there a way to get both displayed?

  • 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-30T20:27:28+00:00Added an answer on May 30, 2026 at 8:27 pm

    if you are using a LinearLayout then add android:orientation="vertical" to the LinearLayout tag and remove the padding from the ListView tag.

    if you are using a RelativeLayout then add android:layout_below=""@id/historyTitle" to the ListView tag and remove the padding from the ListView tag.

    hope this helps.

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

Sidebar

Related Questions

I trying to put together an Android app that will take a picture and
I am trying to make an android app that retrieves info from google app
I'm trying to put in an exception in my web.config so that one page
I have an Android activity that displays a list of log entries (using a
I have hundreds of .doc files with text that I need put on web
I am trying to put a list inside of a <div> so that I
I am trying to put an NSDictionary within an NSArray. My aim is that
I am trying to put the values of some xml elements into an array
I have a MySQL database with book titles in both English and Arabic and
I'm trying to put a list of URLs into a csv file that I'm

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.