In Android Studio, Tools -> Layout Inspector, what does a greyed out(subdued, dim) view in the View Tree mean? The layer still has VISIBLE
properties
I don't see any explanation in the docs, https://developer.android.com/studio/debug/layout-inspector and there isn't a tooltip when hovering the view.
You can download the .li
layout capture in question here
For context/reference, I am trying to figure out why the fragment isn't showing up in the id/content_container
, https://gitlab.com/gitlab-org/gitter/gitter-android-app/issues/108
The project is open source if you want to check out the code yourself, https://gitlab.com/gitlab-org/gitter/gitter-android-app
The grayed-out View
s are not rendered at the time when the LayoutInspector snapshot is taken because they don't need to be shown.
Examples:
NavigationView
in your code is currently hidden (you can test if I'm right by opening it and taking another snapshot with LayoutInspector)RecyclerView
in the NavigationView
is grayed-out as long as it has no Adapter assigned to it (and maybe also if it is empty - did not test it)View
s don't fit on the screen, like when you forget to make a LinearLayout
"vertical" and so most of its children are to the right of the right screen edgethese nodes are boilerplate layout, which are essential for the framework.
that ContentFrameLayout
is the root-view with id android.R.id.content
,
which has R.layout.activity_main
inflated and it adds further nested nodes into there.
basicallyy it's name-space android.R
(in gray) vs. im.gitter.gitter.R
(in black).
nodes from android.R
might still turn black, when they have a visble layout inflated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With