One thing I know for sure is that you are referencing your id's wrong... you only need the + when you are declaring the id of something (meaning the first time the id is used).
After that you don't use the plus. And I have a question: Why are you nesting a RelativeLayout inside a RelativeLayout? The whole point of RelativeLayout is to avoid nested layouts like this, especially when you are talking about something as simple as displaying a single view in that layout. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 27, 2012 at 12:44 PM, Simon Giddings <[email protected]>wrote: > Ok, here is my layout : > <?xml version="1.0" encoding="utf-8"?> > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" > android:id="@+id/PoiActionsTab" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > > > <LinearLayout > android:id="@+id/btncontainer" > android:layout_width="150dip" > android:layout_height="wrap_content" > android:orientation="vertical" > > > <Button ... /> > <Button ... /> > <Button ... /> > > <ProgressBar > android:id="@+id/waitStreetViewCheck" > style="?android:attr/progressBarStyleHorizontal" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:indeterminate="true" > android:padding="7dip" > android:visibility="visible" /> > > </LinearLayout> > > <ImageView > android:id="@+id/imgMapLocation" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_alignTop="@+id/btncontainer" > android:layout_alignBottom="@+id/btncontainer" > android:layout_toRightOf="@+id/btncontainer" > android:padding="5dip" > android:scaleType="fitCenter" > android:visibility="gone" /> > > <RelativeLayout > android:id="@+id/imgLoading" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_alignTop="@+id/btncontainer" > android:layout_alignBottom="@+id/btncontainer" > android:layout_toRightOf="@+id/btncontainer" > > > <ProgressBar > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_centerVertical="true" > android:layout_centerHorizontal="true" /> > > </RelativeLayout> > > </RelativeLayout> > > It is the second ProgressBar which does not show at runtime. > I do not hide it or the RelativeLayout container at the onCreate stage - > have checked. > > > On Monday, 27 August 2012 19:27:30 UTC+2, TreKing wrote: > >> On Mon, Aug 27, 2012 at 11:06 AM, Simon Giddings <[email protected]>wrote: >> >>> Is there a limit to only one ProgressBar per Activity ? >>> >> >> I can't imagine there would be. >> >> >>> I have a layout which needs two independent progress bar instances, but >>> only one is displayed at runtime. >>> >> >> Maybe you're doing something wrong? Perhaps a better explanation of your >> problem and some sample code of what you're doing is in order? >> >> ------------------------------**------------------------------** >> ------------------------------**------- >> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago >> transit tracking app for Android-powered devices >> >> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

