Height of a ListView

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Height of a ListView

Postby Katharnavas » Fri Dec 28, 2007 1:01 pm

Hi,
I wanna set the height for a listView so that the list should be displayed to that height and the remaining parts of the screen should be used for other views.. And one more thing how to display a list view to a particular position in the screen not need to be absolute..
Katharnavas
Senior Developer
Senior Developer
 
Posts: 100
Joined: Tue Dec 04, 2007 5:57 am
Location: India

Top

Postby plusminus » Fri Dec 28, 2007 4:58 pm

Hello Katharnavas,

what about:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. android:maxHeight
  2.  
  3. android:Height
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


Did you mean that it can be absolute or must not be absolute :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby sjtcool » Wed Jan 02, 2008 6:41 am

hi, Katharnavas, maybe you can try android:weight.
Best regards,
sjt.
----------------------------------
good good study,day day up
sjtcool
Junior Developer
Junior Developer
 
Posts: 11
Joined: Wed Dec 19, 2007 3:18 am
Location: Nanjing

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests