wood burning stoves 2.0*
The moose likes Android and the fly likes regarding layout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "regarding layout" Watch "regarding layout" New topic
Author

regarding layout

Brajendra Mathema
Ranch Hand

Joined: Jun 02, 2009
Posts: 39
Hi all,

I'm trying an android app. I'm trying to display some data from database in list view. In my layout xml , i have two edit text box and a date picker, a button and list view.
I want to display the data when the activity loads in list view. I'm able to get the list view only if i remove the datepicker widget or if i place the datepicker widget below the list view.

I'm using simple cursor adapter to set the list veiw.

My layout xml file is like below :

The below layout does'nt work .

how ever this one works:

Any help appreciated.

Thanks
Przemek Boryka
Ranch Hand

Joined: Dec 06, 2011
Posts: 51

Hi!

Below I did your example by myself, I have made a few changes. Effect is on image.



Link to image : Image

Main layout

test.xml


Row in list view:

listrow.xml


And code:


I think it can be useful. BYE (SORRY FOR MY ENGLISH, I M STILL LEARNING)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding layout