I have a LinearLayout with a ScrollView inside of it and inside of the
ScrollView I have another LinearLayout.  Inside the ScrollView/
LinearLayout I will have a list of CheckBoxes (with text after the
CheckBox) that get added to the LinearLayout inside of the
ScrollView.  I also want to display an animated image next the text of
the CheckBox.

I have used the Frame Animation tutorial here:

http://developer.android.com/guide/topics/graphics/2d-graphics.html

and I can get the animation to display but it's not on the same line
after the text of the CheckBox.  They both (CheckBox and Animation)
get displayed but on seperate lines.  The CheckBox is extended into
it's own class and here is the xml:

<com.tvismobile.TagCheckBox
                  xmlns:android="http://schemas.android.com/apk/res/android";
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:checked="false"
                  android:textSize="18dp"
                  android:id="@+id/tagCheckbox"
                  android:paddingLeft="45dp">
                </com.tvismobile.TagCheckBox>

So every time I want to add a check box, I just create a new checkbox
instance and add it to the LinearLayout inside of the ScrollView.  I
tried doing the same with the ImageView but the addView method
wouldn't accept an ImageView object.

Hopefully I explained that clearly.  I'm not very good with working
with layouts so if anyone could give me suggestions as to how to set
up my layouts so I can accomplish having a Checkbox and essentially an
ImageView inside a ScrollView.  Thanks.

-- 
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