File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.

Przemek Boryka
Ranch Hand

Joined: Dec 06, 2011
Posts: 51


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

Link to image : Image

Main layout


Row in list view:


And code:

I think it can be useful. BYE (SORRY FOR MY ENGLISH, I M STILL LEARNING)
I agree. Here's the link:
subject: regarding layout
It's not a secret anymore!