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...
Junior Developer
Junior Developer
Posts: 13
Joined: Thu Jan 15, 2009 2:14 pm
Location: Pune


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

use textview1.setPadding(left, top, right, bottom);
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
Experienced Developer
Experienced Developer
Posts: 62
Joined: Tue Jan 27, 2009 1:31 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 2 guests