• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

regarding layout

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 51
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic