TableLayout

Put your problem here if it does not fit any of the other categories.

TableLayout

Postby sunflower » Thu Mar 05, 2009 8:26 pm

Hi,

I am new to Android Development. And i was trying to create one form using TableLayout.

In my table in first row i have one widget (column) and in second row i have two widget(column).

I have set width of widget in first row to "fill_parent" but it doesn't expand to fit the screen size.

I have used android:stretchColumns="0" but in that case in my second row's second widget which is spinner get shrink which i don't want.

I can create two different table but i dont want to do that.

I would appreciate if you can help me.
sunflower
Junior Developer
Junior Developer
 
Posts: 13
Joined: Wed Mar 04, 2009 3:38 pm

Top

Postby ayesh » Fri Mar 06, 2009 9:27 am

hi sunflower
instead of using table layout u can use another layout
like
Form or better to use linear layout as main layout
set its orientation as vertical
and then create seperate layout for first view and another layout for secon view and add it to upper layout
i think it will work better than table layout
sdfdg
ayesh
Freshman
Freshman
 
Posts: 6
Joined: Thu Feb 19, 2009 12:49 pm
Location: India

Postby sunflower » Mon Mar 16, 2009 7:52 pm

thanks.
sunflower
Junior Developer
Junior Developer
 
Posts: 13
Joined: Wed Mar 04, 2009 3:38 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 16 guests