It shows rendering error what should i do


What can i do with this rendering problem.
my code
<LinearLayout xmlns:android="" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="24dp" android:text="@string/question_text"/> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> android:orientation="horizontal"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/true_button" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/false_button"/> </LinearLayout> </LinearLayout>

1 Like

Rendering errors are very common in the preview window. That error doesn’t necessarily mean that there is something wrong with your code. Running the app is the true test.

You can try pressing the refresh button in the rendering window. The button looks like two, blue arrows in a circle. Most of the time, this will fix the problem (but not always).


It looks like you have an extra LinearLayout closure.


It also looks like you might have a typo -


(andriod vs. android)

1 Like

Thank you so much for your replies.
elr , cstewart , mlowther65
Andriod vs android … this was my mistake hee hee …
Thank you for your replies !!! :slight_smile: