It shows rendering error what should i do

#1

What can i do with this rendering problem.
my code
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/andriod" 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
#2

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).

#3

It looks like you have an extra LinearLayout closure.

#4

It also looks like you might have a typo -

xmlns:android="http://schemas.android.com/apk/res/andriod"
vs.
xmlns:android=“http://schemas.android.com/apk/res/android

(andriod vs. android)

1 Like
#5

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: