generated from DO-SOPT-ANDROID/do-sopt-android-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDoAndroidFragment.kt
More file actions
35 lines (27 loc) · 963 Bytes
/
DoAndroidFragment.kt
File metadata and controls
35 lines (27 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package org.sopt.dosopttemplate
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import org.sopt.dosopttemplate.databinding.FragmentDoAndroidBinding
class DoAndroidFragment : Fragment() {
private var _binding : FragmentDoAndroidBinding ? = null
private val binding: FragmentDoAndroidBinding
get() = requireNotNull(_binding){"바인딩 에러"}
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View {
_binding = FragmentDoAndroidBinding.inflate(inflater, container, false)
return binding.root
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
}
override fun onDestroyView() {
_binding = null
super.onDestroyView()
}
}