When I test my application (which has the Horizontal Scroll View) on my emulator, the scrolling part freezes in the middle. Sometimes the scroll freezes when I scroll the other way.The application doesn't freeze because the back button works. Will this freeze on an actual Android device, or is this just my emulator reacting?
Here is my scroll activity code:
<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:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="namee.com.myapp.School"
android:background="#000000">
<HorizontalScrollView android:id="@+id/horizontalScroll"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fadingEdgeLength="20dp"
android:background="#000000">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#000000">
<ImageView android:src="@drawable/sunset3" android:layout_height="354dp" android:layout_width="600dp" />
<ImageView android:src="@drawable/sunset3" android:layout_height="354dp" android:layout_width="600dp" />
<ImageView android:src="@drawable/sunset3" android:layout_height="354dp" android:layout_width="600dp" />
</LinearLayout>
</HorizontalScrollView>
Here is sunset3
I tried it on my Android device (Samsung Galaxy S4 mini, Android 4.4.2), and it's working fine. It might be some problem with the emulator ( e.g. memory limit too low).