Android: What is android.R.id.content used for?

android, android-resources

Solution

As Philipp Reichart commented:

`android.R.id.content` gives you the root element of a view, without having to know its actual name/type/ID. Check out Get root view from current activity

In case anyone need, you can get this view with View Binding by using `binding.root`

Problem

Anybody could explain the meaning of "android.R.id.content" ? How is it being used ? http://developer.android.com does not have any explanation. public static final int content Since: API Level 1 Constant Value: 16908290 (0x01020002)

Original source