roko_man

Utilities - Empty fragment

Aug 10th, 2017
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.45 KB | None | 0 0
  1. class BlankFragment : Fragment() {
  2.  
  3.  
  4.     lateinit var rootView :ViewGroup
  5.  
  6.  
  7.     override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?,
  8.                               savedInstanceState: Bundle?): View? {
  9.         if (inflater != null) {
  10.             rootView = inflater.inflate(R.layout.activity_empty_fragment, container, false) as ViewGroup
  11.         }
  12.  
  13.  
  14.         return rootView
  15.     }
  16.  
  17. }// Required empty public constructor
Advertisement
Add Comment
Please, Sign In to add comment