Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding layout

 
Brajendra Mathema
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • 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
 
Przemek Boryka
Ranch Hand
Posts: 51
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic