Can you not use ImageButton? On Feb 28, 5:25 pm, skink <[email protected]> wrote: > ls02 wrote: > > I didn't find simple ay of doing this. setBackground is not what I > > want, it chnages the entire button including borders, not just the > > background. > > > On Feb 27, 1:12 pm, jotobjects <[email protected]> wrote: > > > yes - See android.widget.Button documentation for details > > > > On Feb 27, 8:37 am, ls02 <[email protected]> wrote: > > > > > How can I set button background color at run time?- Hide quoted text - > > > > - Show quoted text - > > if you want your button to have both solid background and 'borders' > set its background to LayerDrawable containing two layers: layer 0 > (bottom) with any drawable you want e.g. ColorDrawable and layer 1 > (top) with normal StateListDrawable defining 'borders' > > pskink
-- 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

