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 <[email protected]> wrote: > Hey all, > > I'm trying to figure out how to mimic the "badge" functionality of an > iPhone app...in particular, I've got a gridview that has several > icons, and based on the result of an AsyncTask, I'd like to position a > "new" badge hovering over one of the icons. I've got the icon showing > up using Activity.addContentView but there don't seem to be any > ViewGroup.LayoutParams attributes to control an x/y position where the > new view should be displayed. The options as I see them: > > 1) FrameLayout (also no support for offset that I can see) > 2) RelativeLayout (can't figure out how to dynamically add a new > ImageView) > 3) Create a large, mostly transparent png to handle the offset non- > programmatically > 4) Use AbsoluteLayout to specify pixel offsets. > > Any other options I'm missing? I'd really like to avoid using #3 > (clunky) or #4 (deprecated)...any way to get #1 or #2 working? Or is > there another option I'm missing? -- 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

