android - Scroll view not working properly using relative layout -
for tablet, using relative layout used scroll view doesn't works out. missing here?
source:
<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" > <relativelayout 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=".mainactivity"> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageview1" android:src="@drawable/logo" android:layout_alignparentleft="true" android:layout_alignparentstart="true" /> // more buttons, images , text views here.... </relativelayout> </scrollview>
try making relativelayout height "wrap_content" instead of match parent.
Comments
Post a Comment