Hi All,

I have a table layout defined in my XML file. At run-time, I dynamically 
create rows and add buttons to them. Lets say I have 1 row with 5 buttons 
with some text. I am facing with 2 issues:
1. There are some buttons whose text is slightly longer and thus the text 
wraps on the button. This is fine, however, these buttons then do not align 
themselves with the rest of the buttons. E.g. a button with text wrapped 
will not have it's top aligned with the rest of the buttons and the bottom 
will be square in shape instead of the round corners.

2. Depending on an external activity, I place a small icon on top of the 
text using the following code:
btn.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.sound1, 0, 0);

Issue is that if there are say 5 buttons in a row, and I only update 1 
button, then not only that button shakes and the text shifts down, but all 
other buttons shift down aswell. What I would like is to have the image come 
on without any graphic disturbance to other or that button itself. How can I 
achieve this?

Thanks

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

Reply via email to