Skip to content

Instantly share code, notes, and snippets.

@jafar260698
Created December 26, 2020 07:36
Show Gist options
  • Save jafar260698/9e11ec90deeaf098301d3eb896655329 to your computer and use it in GitHub Desktop.
Save jafar260698/9e11ec90deeaf098301d3eb896655329 to your computer and use it in GitHub Desktop.
class SendMessageFragment : DialogFragment() {
private var _binding: FragmentSendMessageBinding?=null
private val binding get() = _binding!!
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
return inflater.inflate(R.layout.fragment_send_message, container, false)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
_binding= FragmentSendMessageBinding.bind(view)
}
override fun onDestroyView() {
super.onDestroyView()
_binding = null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment