Android Time picker are used a lot in android apps. Android Button Click And Open TatePickerDialog Box In your build.gradle add latest appcompat library, at the time 24.2.1 dependencies { compile 'com.android.support:appcompat-v7:X.X.X' // where X.X.X version } activity_main.xml Set On TextView Click Listener < TextView android :id= "@+id/tvTime " android :layout_width= "match_parent" android :layout_height= "44dp" android :layout_alignParentStart= "true" android :layout_alignParentLeft= "true" android :layout_alignParentTop= "true" android :layout_marginStart= "0dp" android :layout_marginLeft= "0dp" android :layout_marginTop= "38dp" android :text= "DD-MM-YYYYY" android :textSize= "24sp" /> After Select the date and set the textview ==>MainActivity.java ...
Comments
Post a Comment