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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:12:13+00:00 2026-06-03T23:12:13+00:00

I have an activity with the following items: Action bar (one imageview, one view

  • 0

I have an activity with the following items:
Action bar (one imageview, one view and two imagebutton) displayed on top of the activity, and for the rest of the screen I have one ListView. This is all placed in main.xml layout. The list will always have 6 rows no more and the action bar is not visible on this activity.

The listview loses text/images from some rows when scrolling up and down.

Before scrolling (I had to hide the logo though, sorry)

Before scrolling http://img706.imageshack.us/img706/37/32572081.png

After scrolling down and up (note DGL Lookup text disappear)

after first scrolling http://img638.imageshack.us/img638/7334/4scrollup.png

After scrolling down and up again (note DGL Lookup is still not there and Hazard Classes graphic and text disappear too

scrolling again and again http://img839.imageshack.us/img839/4970/5scrolldownagain.png

If I keep scrolling up and down, rows might show up again and might disappear as well.

here is my main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#FFF"
    android:orientation="vertical" >

    <include layout="@layout/action_bar" />

    <ImageView
        android:id="@+id/splashscreen"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_gravity="center" >
    </ImageView>

    <ListView
        android:id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:cacheColorHint="#00000000"
        android:textColor="#000" >
    </ListView>
</LinearLayout>

Any quick help! I am very new to Android

  • 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-03T23:12:15+00:00Added an answer on June 3, 2026 at 11:12 pm

    @Frankenstein: Thanks for your help, you gave me the thread head and I followed it until the I got the solution.

    The issue was that the listview display certain number of rows on a screen, and display more rows as you scroll up and down using getView method. The new rows displayed will normally take the style of the rows they are replacing.

    So, if row1 has a different font style than others, then the row that will take it’s place will inherit the same font style. What you may do, check if this is a different row that shouldn’t inherit the style and then change the style to what you like.

    Check this article http://android.amberfog.com/?p=296 which will explain what I just said in a technical way

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

Sidebar

Related Questions

Within one Activity I have th following piece of code: public void onStartMonitoringToggleClicked(View v)
I have the following problem: I have an Activity where a user can start
I have the following Android scenario: my activity launches an asynchronous task to perform
I have the following problem: I opened the activity A, from which I opened
I have the following asynctask class which is not inside the activity. In the
In my android application, I have following requirement. Activity A --> Activity B(Go to
I have the following problem. My main activity consists of a ListView populated with
I have an android activity that consists of a List View and a Text
I have written following to show my data into grid view. This is the
In one of my Activity, i have used the Spinner . i populate it

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.