Skip to content

Instantly share code, notes, and snippets.

View amrishkakadiya's full-sized avatar

Amrish Kakadiya amrishkakadiya

  • Gujarat, India
View GitHub Profile
@amrishkakadiya
amrishkakadiya / Android Time Range Picker README.md
Last active June 10, 2019 09:10
Android time range picker using dialog fragment and tablayout.

//Use these files and use below code to open timerange picker

class FormActivity: AppCompatActivity(), RangeSetListener {
    override fun onRangeSet(fromHour: Int, fromMinute: Int, toHour: Int, toMinute: Int) {

    }
    private fun openTimeRangePicker() {
        val rangePickerDialog = RangePickerDialog()
        rangePickerDialog.show(supportFragmentManager, "range_picker")

rangePickerDialog.setRangeListener(this)