I am developing an android app for beginners to Learn Android I have developed most of it but now Android Studio is showing errors when i tried to paste XML code in text view(that code i want to be visible in TextView).
I did not got much help but i tried to use resources>value>string and tried pasting the code in text field. How can i fix it
<resources>
<string name="textviewcode">Learn Android</string>
I changed the text(Learn Android) with code and now the app is not working
<string name="textviewcode"><RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<TextView
android:id="@+id/text_id"
android:layout_width="300dp"
android:layout_height="200dp"
android:capitalize="characters"
android:text="hello_world"
android:textColor="@android:color/holo_blue_dark"
android:textColorHighlight="@android:color/primary_text_dark"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:textSize="50dp"/>
</RelativeLayout></string>
</resources>