I used the layouts, graphics, and animation from the default Contacts app, which uses separate layouts for the header, body, and footer, but you can merge them all into one. Create a PopupWindow, set that layout as the contentView, then use showAsDropDown(View anchor, int xoff, int yoff) to show it. The Contacts layout has a LinearLayout inside a HorizontalScrollView w/ImageViews for the two grips, so just stick your content in the LinearLayout between the grips and you're set. The QuickContactWindow class has a method to set the arrows and everything, copy & paste.
On May 12, 7:58 pm, Adam <cantrow...@gmail.com> wrote: > Is there a way to get that same popup layout like they have on twitter > or in the quick contacts popup? Do we just combine the top, middle, > bottom image resources as backgrounds in some sort of layout, or is > there a simpler way? > > On May 10, 5:16 pm, skink <psk...@gmail.com> wrote: > > > > > > > Mark Murphy wrote: > > > westmeadboy wrote: > > > > Anyone any ideas? > > > > Ummm...figure out where the item is positioned on screen, then use some > > > margin tricks to position theirpopupto match, I suppose. > > > if you usePopupWindowyou don't have to use margins at all - you can > > position yourpopupin any (x,y) location > > > moreover: using showAsDropDown you don't even have to locate anchor > > view position > > > pskink > > > -- > > 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 > > athttp://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+unsubscr...@googlegroups.com > For more options, visit this group > athttp://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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en