I have just now started learning android programming. simple app which has got a scollview functionality. The text part scrolls fine but when image is about to come in the view on scrolling, the scrolling stucks and gets slow as if the app is hanging but somehow the scrolling completes in the end with the image.
May I know the reason for this and how to rectify this issue?
Below is the XML code for my app:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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"
tools:context="com.example.nitishsinha.parsefeed.ParseFeed">
<LinearLayout
android:id="@+id/activity_parse_feed"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
>
<TextView
android:id="@+id/Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/imageTitle" />
<TextView
android:id="@+id/Date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/imageDate" />
<ImageView
android:id="@+id/Image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ganpati" />
<TextView
android:id="@+id/Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/imageDesc" />
</LinearLayout>
</ScrollView>