Question

**

Developing Daily Expense Application in Android

** I have seen many android application where user can select Date from date picker.

In my application I have used date field in activity.

so I want to design my own datepicker like calender view.

I want to display datepicker like...

1) first image datepicker

2) second image datepicker

I am developing application like Daily expense... So If anybody knows how to develop stylish datepicker in android.plz reply.

Was it helpful?

Solution

Look in to this example

http://w2davids.wordpress.com/android-simple-calendar/

If you change the layout background you will get what you want

You copy the below code and in button onclick call

     Intent i=new Intent(MainActivity.this,SimpleCalendarViewActivity.class);
                startActivity(i);

And in android Manifest File for SimpleCalendarViewActivity add this theme.. It will display this as a Dialog. check it out

   android:theme="@android:style/Theme.Dialog"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top