http://www.androidpeople.com/category/button/
use button gravity property. ex:- Private Button b1; b1.setGravity(Gravity.RIGHT); On Jan 6, 1:16 am, n179911 <n179...@gmail.com> wrote: > On Tue, Jan 5, 2010 at 11:30 AM, Iroid <irfan.f.k...@gmail.com> wrote: > > set the layout weight of TextView to 1. > > <TextView android:id="@+id/atitle" > > android:singleLine="true" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > android:layout_weight= "1" > > /> > > </LinearLayout> > > I have tried this. But when I view the button in HierachyViewer, the > height is 48, but the width is 0? > > Any more idea? > > Thank you.
-- 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