Re: [android-developers] Re: Arbitrary positioning icon on a View

2009-11-24 Thread Dianne Hackborn
On Mon, Nov 23, 2009 at 10:20 PM, Nithin wrote: > Try offsetLeftAndRight() and offsetTopAndBottom() on the imageView, to > position it accordingly in the layout. But it is temporary only. Both > these offset will reset in the next layout pass. > Given that you don't know when a layout pass will

[android-developers] Re: Arbitrary positioning icon on a View

2009-11-24 Thread Eric
Thanks for the replies, guys. I ended up using View.setPadding (the temporary nature of the offset* methods was a bit too transitory for my needs) to set a left/top padding on the ImageView, and it works like a charm. On Nov 23, 11:44 pm, "appforce.org" wrote: > Hi Eric, > > Have you considered

[android-developers] Re: Arbitrary positioning icon on a View

2009-11-23 Thread appforce.org
Hi Eric, Have you considered changing your adapter to provide the ImageView-s nested in RelativeLayout-s? This will let you do getParent().addView() on you icons. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: Arbitrary positioning icon on a View

2009-11-23 Thread Nithin
Hi Eric, Try offsetLeftAndRight() and offsetTopAndBottom() on the imageView, to position it accordingly in the layout. But it is temporary only. Both these offset will reset in the next layout pass. Thanks On Nov 24, 1:53 am, Eric wrote: > Hey all, > > I'm trying to figure out how to mimic the