Sebastian Pawlak wrote: > Hello, > > I need to place small icon (40x40px) in right-top corner > of a view. The problem is, that there will be many widgets > around such icon.. How to achieve my purpose? > (please see picture: http://img19.imageshack.us/img19/9904/androidk.jpg) > > Thanks in advance for help.
If you are using RelativeLayout for the rest of the screen, just add the icon as another widget, anchored to the top and right. If you are using a series of nested LinearLayouts for your current widgets, either switch to a RelativeLayout. Or, you could wrap your top-most LinearLayout in a FrameLayout, add a RelativeLayout as a child of that FrameLayout (so it is a peer of the top-most LinearLayout), and then use the RelativeLayout to anchor the icon in the upper-left. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---