Refer the following link http://developer.android.com/resources/articles/listview-backgrounds.html to know the reason why it is happening .
On Fri, Nov 25, 2011 at 5:12 PM, Mukesh Srivastav <[email protected]>wrote: > You are always Welcome Mr.KK. > > > Warm Regards, > *Mukesh Kumar*, > Android Consultant/Freelancer, > India,Hyderabad. > > > On Fri, Nov 25, 2011 at 5:09 PM, KK <[email protected]> wrote: > >> It really solved the problem. You are a lifesaver. Thank you very much. >> >> Regards, >> KK >> >> On Fri, Nov 25, 2011 at 5:05 PM, Mukesh Srivastav >> <[email protected]>wrote: >> >>> Hi KK, >>> >>> Please add the following line to your listview, The problem get solves. >>> >>> android:cacheColorHint="#00000000" >>> >>> >>> Warm Regards, >>> *Mukesh Kumar*, >>> Android Consultant/Freelancer, >>> India,Hyderabad. >>> >>> >>> On Fri, Nov 25, 2011 at 4:59 PM, KK <[email protected]> wrote: >>> >>>> Hi All, >>>> I'm trying to show a list of songs using ListView (which supports >>>> scrolling when the song list grows bigger than the available screen). In >>>> this regard, I'm able to show the list of songs but whenever the user tries >>>> to scroll the screen up/down the part of the screen which has the text, >>>> goes black as can be seen here (and is not readable): >>>> >>>> http://imageshack.us/photo/my-images/706/device20111125132814.png/ >>>> http://imageshack.us/photo/my-images/17/device20111125132731.png/ >>>> >>>> Only when the user is done scrolling then dark portion goes out and the >>>> screen starts showing the song list normally and is readable. I've tested >>>> this on Android 2.3.4 real device. Would appreciate if someone could point >>>> me what is going wrong here. >>>> >>>> The code snippet for generating the song list is as below: >>>> >>>> ----snippet---- >>>> >>>> <?xml version="1.0" encoding="utf-8"?> >>>> <LinearLayout xmlns:android=" >>>> http://schemas.android.com/apk/res/android" >>>> android:background="@drawable/statue_of_liberty_600x800" >>>> android:orientation="vertical" android:layout_width="fill_parent" >>>> android:layout_height="fill_parent"> >>>> <ListView android:id="@android:id/list" android:divider="@null" >>>> android:dividerHeight="0dp" android:layout_width="fill_parent" >>>> android:layout_weight="9" >>>> android:layout_height="382dp" android:layout_marginLeft="10dp" >>>> android:layout_marginRight="10dp" android:layout_marginBottom="10dp" >>>> android:layout_marginTop="10dp"> >>>> </ListView> >>>> <TextView android:id="@id/android:empty" >>>> android:layout_width="fill_parent" >>>> android:layout_height="fill_parent" android:text="No songs found on >>>> SD Card." >>>> android:paddingTop="60dp" /> >>>> <SeekBar android:layout_height="wrap_content" >>>> android:layout_width="match_parent" android:id="@+id/seekBar1" >>>> android:layout_marginTop="10dp" android:layout_weight="1" >>>> android:layout_marginLeft="15dp" android:layout_marginRight="15dp" >>>> android:layout_marginBottom="15dp"> >>>> </SeekBar> >>>> </LinearLayout> >>>> >>>> --------snippet----------- >>>> >>>> >>>> Appreciate your time. Thanks. >>>> >>>> Regards, >>>> KK >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Android Developers" group. >>>> To post to this group, send email to >>>> [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/android-developers?hl=en >>> >>> >>> >>> >>> -- >>> Warm Regards, >>> *Mukesh Kumar*, >>> Android Consultant/Freelancer, >>> India,Hyderabad. >>> >>> >> > > > -- > Warm Regards, > *Mukesh Kumar*, > Android Consultant/Freelancer, > India,Hyderabad. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

