[android-developers] Re: Using a 9 patch as a listSelector affects padding
<ListView
android:id="@+id/mainList"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/topNav"
android:layout_above="@+id/zgallery"
android:cacheColorHint="#FFF"
android:divider="@null"
android:drawSelectorOnTop="true"
android:listSelector="@drawable/list_selected"/>
That's 100% it. The selector is a 9-patch called list_selected.9.png.
With the last two attributes, and a 9-patch, I get extra padding.
Without the last two attributes, I don't get extra padding.
On Apr 5, 12:01 pm, Justin Anderson <magouyaw...@gmail.com> wrote:
> Without showing us what you are doing exactly (i.e. some code), you aren't
> going to get a good answer.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> On Tue, Apr 5, 2011 at 11:37 AM, jsera <gall.blad...@gmail.com> wrote:
> > I don't want this. How do I prevent the 9 patch from adding padding to
> > the ListView.
>
> > I have NO, repeat, NO pixels on the bottom, or the right hand side,
> > which the docs say add padding. They are not there.
>
> > --
> > 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
>
>
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home