View rootView = inflater.inflate (R.layout.check_fragment, container, false);
What is the use of bool since false in this case? I'm starting to program on Android, can someone explain this to me in detail? Thanks in advance.
https://developer.android.com/reference/android/view/LayoutInflater.html
If you set it to true, then the view will be automatically added to its parent element (second parameter). In most cases this should be false, but sometimes it is necessary, especially if you use <merge>as root in bloated xml.
<merge>
true " View container ". false ", View container , ".
true
View
container
false
FragmentManager View .
FragmentManager
, container inflate(), , ( RelativeLayout) , .
inflate()
RelativeLayout
? false, root LayoutParams XML.
docs:
attachToRoot - ? false, root LayoutParams XML.
false attach, ViewGroup, onCreateView. , Android . onCreateView, , .
true, , , , - .
Source: https://habr.com/ru/post/1622543/More articles:var becomes NaN after committing to 10 in a function - javascriptΠΠΎΠΌΠΏΠΎΠ·ΠΈΡΠΎΡ: Π½Π΅Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ ΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ ΠΏΠΎΠ²Π΅Π΄Π΅Π½ΠΈΠ΅ ΠΈ Π½ΠΎΡΠΊΡ Π² Π½ΠΎΠ²ΠΎΠΌ ΠΏΡΠΎΠ΅ΠΊΡΠ΅ laravel 5.2 - laravel-5.2Using mutable objects as constants - javaDisplay line by letter in TextView -Android - javaASP.Net Intersessional Event - asp.netNPM script naming convention - javascriptHow to load a new folder in Laravel 5 using composer.json? - phpΠΠΎΡΠ΅ΠΌΡ sbt ΠΏΡΠ΅Π΄ΠΎΡΡΠ°Π²Π»ΡΠ΅Ρ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡΠ΅ΠΉ Ρ Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡΡΠΌΠΈ Akka ΠΈ ScalaTest? - scalaWhy can't the xts function find the as.yearmon function without adding a zoo? - rrandom and temporary adequacy - javaAll Articles