For my main_activity, the layout preview disappeared after i was debugging.
I have 2 other layouts in this Project, in which i can perfectly see the layout in the preview.
Also the component tree says: nothing to show
There is no rendering error showing up, below is xml

Thanks for your help!
Greetings Michael
Have you tried Rebuilding the project, re-opening Android Studio, Invalidate Caches? That is if you are sure you did nothing and it just disappeared.
If that doesn't work, you could try saving the XML code in a txt file, deleting the xml layout, creating an empty one and pasting back the code.
Update:
What if you surround your LinearLayout with a ScrollView and then move the app:layout_behavior="@string/appbar_scrolling_view_behavior" to the ScrollView instead. I think everything should work fine then.
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
your ImageView and TextViews here
</LinearLayout>
</ScrollView>
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