There are no errors when compiling, but images are not displayed - only three blue squares
java
super.onCreate(savedInstanceState); setContentView(R.layout.inv); TextView textEl = (TextView) findViewById(R.id.textView); int strId = getResources().getIdentifier("article", "string", getPackageName()); String strValue = getString(strId); textEl.setText(Html.fromHtml(strValue));
xml
<string name="article" formatted="false"><![CDATA[ <img src="@res/mipmap-hdpi/ic_launcher"> <img src="@res/mipmap-hdpi/ic_launcher.png"> <img src="file:///С:/Android/testV7/app/src/main/res/qwerty.png"/>
markup
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Go to Activity One" android:id="@+id/btnActOne"/> </LinearLayout> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" > <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Button 1" /> <TextView android:id="@+id/textView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="50dp" android:text="nope"/> <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Button 11" /> </LinearLayout> </ScrollView> </LinearLayout>
TextView
is not a widget that is used to display photos or other images. - Silento