Monday, September 5, 2011

[android-developers] Problem with dividers

Hi guys, how you're doing?

I'm in trouble here.  =[

In mine preferencesActivity, I've a listView who I set a image divider:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical">  

  <ListView android:id="@android:id/list"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:listSelector="@android:color/transparent"
        android:divider="@drawable/separator" 
        android:dividerHeight="1dp"
        android:layout_gravity="top" 
        android:stackFromBottom="true"/> 
</LinearLayout>

the application has a theme where the list itens are transparent, so, it can stay a background image in fully application.
But the problem is in dividers who don't be showed properly.

Some are be allright, but others don't,  and when I scroll the listview, the hide dividers are showed, and others are hiding.

someone knows why it's happening?
thanks!


--
Elison José Gracite Lusvardi

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment