Ok, So I used RelativeLayout and the image is now to the right of the
text by using the property "layout_toRightOf" as such:

android:layout_toRightOf="@id/tagCheckbox"

This is my new layout (I changed the middleLayout from LinearLayout to
RelativeLayout):

http://imgur.com/vsVld.png

but now I'm having the problem where any new checkbox that I try to
add, it overlaps the previous checkbox or in other words, it doesn't
go to a new line.  Is there something with using RelativeLayout inside
a ScrollView that I'm not considering?  I tried using fill_horizontal
and fill_vertical for the layout gravity of RelativeLayout and that
didn't accomplish anything.  Any suggestions as to having each
checkbox and image on seperate lines?

On Sep 24, 12:52 pm, TreKing <[email protected]> wrote:
> On Fri, Sep 24, 2010 at 10:35 AM, Wall-E <[email protected]> wrote:
> > What is happening is that when I set the animation it places it correctly
> > in the ImageView I created inside the LayoutView but when I add the CheckBox
> > which is done dynamically it goes to the next line.
>
> Ah, I see. I think your problem is using LinearLayout - that's just how it
> works, putting views in sequential order.
> I suggest your use a RelativeLayout and play with the properties. It should
> be fairly easy to get this the way you want.
>
> --------------------------------------------------------------------------- 
> ----------------------
> 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

Reply via email to