[android-developers] Re: AlignParentBottom in RelativeLayout (wrap_content)
I just tried that, problem now is that I need my view rendered before the image, such that the image is rendered on top of the view. I cannot reference a view that is defined later in the xml, and I can't seem to find an option to render a view below a previously rendered view. So I'm back to defining the view size manually. - Mark Gjøl On Aug 3, 4:59 pm, Kostya Vasilyev kmans...@gmail.com wrote: Um, android:layout_bottom ? 03.08.2011 18:56, Mark Gjøl пишет: That won't achieve what I want. To achieve the result I want it is important for the bottom line to be placed exactly on the bottom on the image - not below it. So putting it relative to the image won't do it for me. - Mark Gjøl -- Kostya Vasilyev -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AlignParentBottom in RelativeLayout (wrap_content)
Yes you can use forward references inside relative layouts (starting with 1.6). Make sure to use @+id the first time a particular view id is needed - view references are one thing, id definitions, quite another. -- Kostya Vasilyev 04.08.2011 11:46 пользователь Mark Gjøl bitflips...@gmail.com написал: -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AlignParentBottom in RelativeLayout (wrap_content)
Ah, the +. Thank you very much, that solved my problem! - Mark Gjøl On Aug 4, 9:50 am, Kostya Vasilyev kmans...@gmail.com wrote: Yes you can use forward references inside relative layouts (starting with 1.6). Make sure to use @+id the first time a particular view id is needed - view references are one thing, id definitions, quite another. -- Kostya Vasilyev 04.08.2011 11:46 пользователь Mark Gjøl bitflips...@gmail.com написал: -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AlignParentBottom in RelativeLayout (wrap_content)
On Aug 3, 4:09 pm, Kostya Vasilyev kmans...@gmail.com wrote: 03.08.2011 17:25, Mark Gjøl пишет: Yep, it seems that's how it works, even with Android 1.6, 2.0, etc. Any thoughts? Yes, build the layout some other way - such as anchor a view to the top, then add more views with layout_below - as opposed to anchoring a view at the bottom, and placing others with layout_above, as you're probably doing now. That won't achieve what I want. To achieve the result I want it is important for the bottom line to be placed exactly on the bottom on the image - not below it. So putting it relative to the image won't do it for me. - Mark Gjøl -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AlignParentBottom in RelativeLayout (wrap_content)
Um, android:layout_bottom ? 03.08.2011 18:56, Mark Gjøl пишет: That won't achieve what I want. To achieve the result I want it is important for the bottom line to be placed exactly on the bottom on the image - not below it. So putting it relative to the image won't do it for me. - Mark Gjøl -- Kostya Vasilyev -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en