[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-06-10 Thread Yahel
Sorry to highjack the post, Just to say Good job, the twitter app is one of the most polished i've seen on the market. Keep up the good work and thanks for sharing. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-06-10 Thread Nerdrow
Sorry, haven't been here in a while This is how you can do it in a nutshell, ugly and all in java :) LayoutParams wrapParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); final LinearLayout contentView = new LinearLayout(this);

[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-27 Thread ionel
Can you put some code how you created PopupWindows? On May 21, 10:53 pm, Nerdrow troybe...@gmail.com wrote: 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

[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-23 Thread Emmanuel
The twitter application will become rather soon open sourced, it has been announced by Android officials. I think Google wants this kind of widget to become standard in Android applications. Emmanuel / Alocaly http://androidblogger.blogspot.com/ http://www.alocaly.com/ On May 21, 9:53 pm,

[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-21 Thread Nerdrow
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

[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-12 Thread Adam
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:

[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-10 Thread westmeadboy
Anyone any ideas? On May 9, 4:33 pm, westmeadboy westmead...@yahoo.co.uk wrote: In the official Twitter app, in the Tweets activity, if you click on the small down arrow (right side of each tweet entry), a really nice popup appears just above or below the entry. How did they do this (i.e.

Re: [android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-10 Thread Mark Murphy
westmeadboy wrote: Anyone any ideas? Ummm...figure out where the item is positioned on screen, then use some margin tricks to position their popup to match, I suppose. You can see a really crude equivalent of that here, just aiming for putting something on the upper or lower half of the screen:

Re: [android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-10 Thread skink
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 their popup to match, I suppose. if you use PopupWindow you don't have to use margins at all - you can position your popup in any