I'm trying to split the screen in 2 areas, to the left an ImageView
and to the right a ScrolView
. I'm adding the ImageView
and the content of the ScrollView programatically, so the xml file of the layout looks like this:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<FrameLayout
android:id="@+id/scene_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="left"
>
</FrameLayout>
<ScrollView
android:layout_height="fill_parent"
android:layout_width="@dimen/scrollmenu_width"
android:layout_gravity="right"
>
<LinearLayout
android:id="@+id/scrollmenu"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_width="fill_parent"
>
</LinearLayout>
</ScrollView>
</FrameLayout>
What am I doing wrong? because I'm getting the ScrollView
to the right, but the ImageView
centered (relative to the screen) placed on the left of the screen. The resolution of the image exceeds the screen's resolution so I get black sp