How to set margins between 2 textview through coding?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to set margins between 2 textview through coding?

Postby devdattac » Sat Feb 21, 2009 7:06 am

Hi All,
I am developing an application in that I am using table layout .I want to add rows dynamically , that is achieved but the problem is I am not able to set margins between textViews that I have taken on table rows.
please help me ASAP...
Thanx
devdattac
Junior Developer
Junior Developer
 
Posts: 13
Joined: Thu Jan 15, 2009 2:14 pm
Location: Pune

Top

Postby hebbalhrk » Mon Feb 23, 2009 6:48 am

use textview1.setPadding(left, top, right, bottom);
hebbalhrk
Developer
Developer
 
Posts: 37
Joined: Wed Jun 18, 2008 10:35 am

Postby kali » Thu Feb 26, 2009 6:02 am

hai friend
there is another way
you can use Listview with array adapter that will add item dynamically with regular interval
kali
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Tue Jan 27, 2009 1:31 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests