Question

i have been developing iphone apps for a while now. I just started on android and have about half of my app done.

My app calls the native datepicker which the user selects the date then on the selection of the date a particular image is show in the format 2010-3-24, same as android output.

I have used the date picker tutorial to get the datepicker working and displaying the selected text in textview.

What i need is to display the particular image that corresponds to the selected date. The images are local to the app. I have looked for tutorials that would possibly help me out but so far no such luck. It is a very simple problem, i am just new to the platform.

Was it helpful?

Solution

So you would take the Date that comes back from the DatePicker and do some sort of conditional statement to determine what image to display in an ImageView.

What exactly are you having trouble with? Are you having trouble with the conditional statement that would determine the image to use? If so you need to give us more information on how you want that to work.

Are you having trouble getting an image to display in an ImageView? If so show us what code you have tried and we can help you with that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top