[android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread Beth
The problem may be that the TextView atitle has android:layout_width=fill_parent. Try setting it to wrap_content and see if you get better results. Regards, Beth On Jan 5, 1:57 pm, n179911 n179...@gmail.com wrote: Hi, I have a linear layout like this: LinearLayout android:id=@+id/header  

[android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread Iroid
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 On

Re: [android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread n179911
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-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread Sasikumar.S
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.