Hello! I have a CheckBox in my layout. Such as following:

                <CheckBox
                        android:id="@+id/sound_box"
                        android:text="Sound mode on/off"
                        android:textSize="14px"
                        android:textColor="#FF000000"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                   />

This works fine, but I want to set a custom background for it. So I do
this:

                <com.subzero.widget.MainCheckBox
                        android:id="@+id/sound_box"
                        android:text="Sound mode on/off"
                        android:textSize="14px"
                        android:textColor="#FF000000"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"

                        android:background="@drawable/bg"
                   />
The background appears now, but ChekBox now looks strange. The text
("Sound mode on/off") now begins just where checkbox button does and
the button is shown over the beginning of the text. Is it a well-known
bug and does this problem have any solution besides creating a whole
new widget?
--~--~---------~--~----~------------~-------~--~----~
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