Implementing DatePicker in Fragment

后端 未结 3 1422
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 17:53

I\'am using Fragment which is an instance of Fragment and not of DialogFragment.

I did google most of the search result shows how to use DialogFragment to have DateP

3条回答
  •  粉色の甜心
    2020-12-16 18:29

    . . . which isn't working in my case because of type mismatch of Fragment and DialogFragment

    A DialogFragment IS-A Fragment because it extends Fragment.Therefore, you can use a DialogFragment anywhere you would a Fragment.

提交回复
热议问题