Created
May 9, 2019 10:23
-
-
Save jddeep/93129855dbf8722d3cb2f770d12318f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timeButton.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
Calendar now = Calendar.getInstance(); | |
TimePickerDialog tpd = TimePickerDialog.newInstance( | |
NewItem.this, | |
now.get(Calendar.HOUR_OF_DAY), | |
now.get(Calendar.MINUTE), | |
false | |
); | |
tpd.show(getFragmentManager(), "Timepickerdialog"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment