- Forum posts: 9
Sep 11, 2018, 7:49:04 PM via Website
Sep 11, 2018 7:49:04 PM via Website
I would like the user to input date only in my Android app EditText. I am opening the calendar when the user focus on the EditText control. But sometimes the built-in keyboard appears on focussing instead of calendar. How can I restrict date only here? Here is my EditText in activity_main.
<EditText android:layout_width="fill_parent" android:layout_height="wrap_content"
android:id="@+id/tEndDate"
android:layout_marginBottom="2dip" android:textAlignment="textEnd"/>
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.