Button class does not have setBounds(). setBounds() is for Drawable. http://developer.android.com/reference/android/graphics/drawable/Drawable.html#setBounds%28int,%20int,%20int,%20int%29
What are you trying to achieve with setBounds? On Feb 24, 10:39 pm, rajesh chandrasekaran <[email protected]> wrote: > hi All, > > How to use setBounds in android. > > This is my code,but i am getting the error > > Button button1 = (Button) findViewById(R.id.button_1); > button1.setBounds(87, 90, 34, 98); > > please give me the corect solution. > > Thanks > C.Rajesh -- 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

