Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
Do you mean in the code for the fragment? Wouldn't the fragment already know the orientation from the system? -- 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 unsubs

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
Ahh, that was the problem... such a simple mistake (but isn't it always). -- 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

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
I always develop on real devices so i'm not sure I can use the viewer, but I can give it a shot for this instance. - Brill -- 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@googlegroup

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
A quick and dirty trick that works very well for me, is to set the background of a Layout / View in the XML to something really distinct, like #FF008040, and then switch to the UI editor or run the application. Not as complete and detailed as the hierarchy viewer, but still very useful, fast,

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Dianne Hackborn
Also whenever you have problems with the UI not showing correctly, "hierarchyviewer" is a very valuable tool to look at what is going on in the view hierarchy. Problems like these are very unlikely to be related to fragments, but in how the view hierarchy has been constructed. 2011/4/17 Kostya Va

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Samson Akisanya
Aren't you also supposed to specify the orientation of the fragment as well ...so the xml definition is fine but i think u should look at the fragment definition as well. On 17 Apr 2011 09:42, "Brill Pappin" wrote: > I'm very confused on why my fragments refuse to draw in portrait mode and > draw

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
Er, I meant wrong in portrait mode. Where the orientation is "vertical". 17.04.2011 12:52 пользователь "Kostya Vasilyev" написал: > Your fragments in landscape mode have wrong width/height. Should be: > width=match_parent, height=0, whereas you have them switched. > 17.04.2011 12:42 пользователь "

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
Your fragments in landscape mode have wrong width/height. Should be: width=match_parent, height=0, whereas you have them switched. 17.04.2011 12:42 пользователь "Brill Pappin" написал: > I'm very confused on why my fragments refuse to draw in portrait mode and > draw fine in landscape mode. > > I'

[android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
I'm very confused on why my fragments refuse to draw in portrait mode and draw fine in landscape mode. I'm build a screen with two fragments. in landscape they are side-by-side and in portrait they are supposed to stack one above the other. however now matter what I seem to try, the portrait mod