I am studying android. To check how something works I want to comment out parts of layout. I am aware of XML style <!-- -->
comment but I want to be able to comment out individual attributes like android:theme here:
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
// android:theme="@style/Theme.ScrollStub2.AppBarOverlay"
android:layout_width="match_parent"
except // doesn't work in XML.
Is there the way?
EDIT: To clarify, I need just any way to make android studio ignore the attribute, without having to delete it. I didn't want to comment out 'block' or 'arbitrary line' as in other suggested questions. I tried changing name to non-existent attribute e.g. theme -> xtheme, but studio refuses to build such project.