I am trying to set date to edittext.
I am encountering following problems
When ever I open application and first time I click on edit Text, it should directly show the calender but first time I have to click twice.
Secondly, when I have set a date. It makes it editable and you can write anything in it.
I can't make my screen scroll down to the end. How can I make my screen scroll down. I am using
Linear Layout xml
How can I solve these issues?
My code:
date.setClickable(true);
date.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
date.setEnabled(true);
showDialog(DATE_DIALOG_ID);
}
});