i am trying to add second column inside row, using the following code :
kindly how to go about this????
and correctify the code: need urgent reply.............

CODE:
*

public* *void* onCreate(Bundle savedInstanceState) {

*super*.onCreate(savedInstanceState);

TableLayout tv= *new* TableLayout(*this*);

TableRow tR = *new* TableRow(*this*);

TextView tV = *new* TextView(*this*);

TextView tV2 = *new* TextView(*this*);

tV.setText("Our Project");

tV2.setText("Our Project");

LayoutParams *param*=*new* LayoutParams(LayoutParams.*FILL_PARENT*
,LayoutParams.*FILL_PARENT*);

tv.setStretchAllColumns(*true*);

tv.addView(tR);

// tR.setPadding(5,5,5,5);

tR.addView(tv);

tR.setPadding(5,5,5,5);

tR.addView(tV2);

*this*.setContentView(tv);

}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to