[android-developers] Re: Problem in setMargins() and textview

2009-11-19 Thread skink
On Nov 17, 2:45 pm, Nithin wrote: > Hi, > > I created a textview and also MarginlayoutParams. Then i put setMargin > for the MarginLayoutParams and inserted that to textview using > tv.setLayoutparams(), but its not working. > > The code is, > > MarginLayoutParams compParams = new MarginLayoutPa

[android-developers] Re: Problem in setMargins() and textview

2009-11-18 Thread Nithin
Hi, now, I am trying in this, still its not working... LinearLayout layout = new LinearLayout(this); LayoutParams layoutParams = new LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT); layout.

[android-developers] Re: Problem in setMargins() and textview

2009-11-18 Thread Nithin
any idea On Nov 18, 12:23 pm, Nithin wrote: > Padding can't do. I want to implement margin, itself. > > On Nov 18, 12:09 pm, GPU wrote: > > > use the padding > > > On Nov 18, 10:20 am, Nithin wrote: > > > > Hi, > > > > I tried in this way too, still no success > > > > MarginLayoutParams com

[android-developers] Re: Problem in setMargins() and textview

2009-11-17 Thread Nithin
Padding can't do. I want to implement margin, itself. On Nov 18, 12:09 pm, GPU wrote: > use the padding > > On Nov 18, 10:20 am, Nithin wrote: > > > Hi, > > > I tried in this way too, still no success > > > MarginLayoutParams compParams = new MarginLayoutParams > > (MarginLayoutParams.WRAP_CONT

[android-developers] Re: Problem in setMargins() and textview

2009-11-17 Thread GPU
use the padding On Nov 18, 10:20 am, Nithin wrote: > Hi, > > I tried in this way too, still no success > > MarginLayoutParams compParams = new MarginLayoutParams > (MarginLayoutParams.WRAP_CONTENT, >                                 MarginLayoutParams.WRAP_CONTENT); > compParams.topMargin=100; > c

[android-developers] Re: Problem in setMargins() and textview

2009-11-17 Thread Nithin
Hi, I tried in this way too, still no success MarginLayoutParams compParams = new MarginLayoutParams (MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); compParams.topMargin=100; compParams.leftMargin=100; compParams.bottomMargin=0; compParams.righ

[android-developers] Re: Problem in setMargins() and textview

2009-11-17 Thread Nithin
anybody know this.. I googled alot, but cant get the exact thing.. Thanks On Nov 17, 6:45 pm, Nithin wrote: > Hi, > > I created a textview and also MarginlayoutParams. Then i put setMargin > for the MarginLayoutParams and inserted that to textview using > tv.setLayoutparams(), but its not worki