How do you get LayoutInflater in fragment?

How do you get LayoutInflater in fragment?
Answer
The final way to get an instance of LayoutInflater, is from
the method onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
in a Fragment. This just passes in the result of Activity. getLayoutInflater(), so everything above applies.
 

Tìm kiếm

Back
Top