Friday, August 16, 2013

Re: [android-developers] Need help setting table column width

Any luck on this ...

this is a kind of a bit urgent for me. Any pointers or help would be appreciated.

Thanks
sAlil

On Wednesday, August 14, 2013 7:51:32 AM UTC+5:30, Salil wrote:
Thanks TreKing for the reply.

I referred the online documents for setting layout parameters. But couldn't do it correctly. I am not getting a logical explanation on why only the first column is not setting the parameter. If I add a blank column before the first column ( id column ) then the first blank column will be of the fixed size and id column will become fit to the text size. It was a bit puzzling.

Thanks for taking time to look into this. will wait for the analysis of the experts.

Thanks
Salil

On Tuesday, August 13, 2013 11:11:05 PM UTC+5:30, TreKing wrote:

On Tue, Aug 13, 2013 at 1:38 AM, Salil <sal...@gmail.com> wrote:
I think I didn't understand your question correctly. the project file is attached.

Few people are going to download an attachment off a posting in a public forum on the internet. Even fewer are going to weed through it to debug your problem for you. When posting, you need to post the relevant bits of your code to make easier for others to see what you're doing and offer help.
 
The following is what I am doing.

Checkout the docs for TableLayout, particularly the section about setting columns shrinkable.

Also make sure you're using the correct layout params:
http://developer.android.com/reference/android/widget/TableLayout.LayoutParams.html
http://developer.android.com/reference/android/widget/TableRow.LayoutParams.html

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment