Thursday, December 31, 2009

[android-developers] Re: Can someone explain the correct way to use android:layout_toRightOf?

On Dec 31, 9:43 am, Mark Murphy <mmur...@commonsware.com> wrote:
> jotobjects wrote:
> > You cannot have a forward reference in the layout.    Here bucm is
> > later in the layout so that forward reference is not allowed.
>
> Actually, forward references work in Android 1.6+, but you have to put
> the + sign on the @+id the *first* time it is encountered. So, in this
> snippet, put @+id/bucm in the toRightOf, and when you define the widget
> later in the layout, give it an android:id of @id/bucm, and it works.
>

My misinformation is from the API docs where it says"
"For the sake of efficiency, the relations between views are evaluated
in one pass, so if view Y is dependent on the position of view X, make
sure the view X comes first in the layout." -
http://developer.android.com/reference/android/widget/RelativeLayout.html

Where is the update documented?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate