[android-developers] Re: TextView before ListView

2010-03-13 Thread Bob Kerns
Well, thanks for thinking about it for me, I appreciate it. But that's not the problem here. It's not really the constraint between the siblings (Spinner, TextView) that's the problem, but rather the content of the Spinner is not reflected in the Spinner's size computations. There are issues with

[android-developers] Re: TextView before ListView

2010-03-13 Thread Brion Emde
Thank you, Mark, that is indeed good to know and a nice addition. I am indeed targeting 1.6, so I could have used this. I'm sure there were situations under the previous rules that things could not be done easily, or maybe at all. For me, things are working correctly using the pre-1.6 rules, so I

Re: [android-developers] Re: TextView before ListView

2010-03-13 Thread Mark Murphy
Brion Emde wrote: > RelativeLayout makes only a single pass through your XML to > determine the Ids and collect the layout information. That is not true, as of Android 1.6. It didn't get much publicity, but RelativeLayout now supports forward references. The key is you need to use the + sign on t

[android-developers] Re: TextView before ListView

2010-03-13 Thread Brion Emde
Bob, Forgive me if this is obvious to you, but I have to remind myself over and over. RelativeLayout makes only a single pass through your XML to determine the Ids and collect the layout information. So it is essential that you order the elements correctly to make sure you have no forward referenc

[android-developers] Re: TextView before ListView

2010-03-12 Thread christian.posta
Without posting the XML snippet of the layout, we can't help much. I would suggest posting the code to let us see what exactly you're trying. Otherwise, play around with the layout_width and layout_height options. They could be causing your layout not to render as you expect. On Mar 11, 5:35 am, P

[android-developers] Re: TextView before ListView

2010-03-11 Thread Kumar Bibek
This looks good to me.. Thanks and Regards, Kumar Bibek On Mar 12, 8:06 am, Brion Emde wrote: > Maybe I'm not understanding what the question is; you be the judge. > With this layout: > > > http://schemas.android.com/apk/res/ > android" >     android:orientation="vertical" >     android:layout_

[android-developers] Re: TextView before ListView

2010-03-11 Thread Brion Emde
Maybe I'm not understanding what the question is; you be the judge. With this layout: http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > I produce

[android-developers] Re: TextView before ListView

2010-03-11 Thread Bob Kerns
Are you sure? This sounds like exactly what I was asking earlier today, based on my experience with Spinner. I speculated that ListView might exhibit the same behavior. You describe the behavior I was expecting. Instead, the Spinner ignored all constraints. If I put it first in the layout, it woul

[android-developers] Re: TextView before ListView

2010-03-11 Thread Brion Emde
You can totally do this. Make sure that your TextView is set to android:layout_height="wrap_content" and not to "fill_parent". That will surely do what you are describing. --- On Mar 11, 5:35 am, Pipen wrote: > Dear All, > > I've tried to add a TextView before a ListView in a LinearLayout. The