Answers for "dont reload fragment in navigation component"

0

dont reload fragment in navigation component

private var view: View? = null

override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {

    if (view == null) {
        view = inflater.inflate(R.layout.fragment_list, container, false)
                //...
    }

    return view

 }
Posted by: Guest on November-29-2020

Code answers related to "dont reload fragment in navigation component"

Browse Popular Code Answers by Language