Re: [android-developers] second column list view not properly aligned

2010-10-07 Thread TreKing
On Wed, Oct 6, 2010 at 11:16 PM, Varun Khanduja varunkhand...@gmail.comwrote:

 I have been getting opinions that I should have gone for table layout


Probably, if alignment of each column was important.


  could someone please save me from doing the work from scratch. I really
 dont want to do everything again.


You may have to bite the bullet and just redo it correctly. Anything you do
from here is going to be mostly a hack.

If you insist, two things that come to mind are to either a) figure out
which two of those columns are going to be a fixed width and set them all
to be that width, letting the third take up the rest, or b) programmatically
calculating the width(s) and applying them uniformly to all items in the
list, which begins to get complicated.


 Thanks and sorry for the posts. Trust me this problem is different than
 last one. Thanks


Didn't mean to give you crap in your last post - just sometimes it seems
people don't listen (or read, as the case may be). =)

-
TreKing http://sites.google.com/site/rezmobileapps/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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] second column list view not properly aligned

2010-10-06 Thread Varun Khanduja
Hello,

Sorry for the redundant posts. I did get the issue of how to get
second column resolved by your help. Now I am not able to understand
how to get the word hello which is the second column horizontally
aligned in a straight line.

http://www.flickr.com/photos/34403...@n02/5058549047/

Here is my xml code


?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=
   http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=horizontal
ImageView
android:id=@+id/icon
android:layout_width=22px
android:paddingLeft=2px
android:paddingRight=2px
android:paddingTop=2px
android:layout_height=wrap_content
android:src=@drawable/icon/

LinearLayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical
TextView
android:id=@+id/label1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textSize=10sp/
TextView
android:id=@+id/label2
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textSize=10sp/


/LinearLayout
TextView
android:id=@+id/label3
android:layout_width=fill_parent
android:layout_height=wrap_content
android:textSize=15sp
android:layout_marginLeft=50px
android:text=hello
/



/LinearLayout

I have been getting opinions that I should have gone for table layout
could someone please save me from doing the work from scratch. I
really dont want to do everything again. Thanks and sorry for the
posts. Trust me this problem is different than last one. Thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en