title: Android Scroll view Image and text
body: <p>I am solving a problem with image and text in one scroll view. The main problem is, that I get different image height from server side . But the place with image should be all the time same. 
  Now the height of image place is dynamic. The text should be scrollable with the image.</p>
  
  <p>Is there any possibility how to make the image height static?</p>
  
  <p>Thank you!</p>
  
  <p><img src="https://i.stack.imgur.com/l2hbh.png" alt="enter image description here">  </p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical" &gt;
  
  &lt;FrameLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical" &gt;
  
          &lt;RelativeLayout
              android:id="@+id/article_gallery"
              android:layout_width="match_parent"
              android:layout_height="0dip"
              android:layout_weight="4" &gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:orientation="horizontal" &gt;
  
                  &lt;ImageView
                      android:id="@+id/article_image_back"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_vertical"
                      android:src="@drawable/sipka_l" /&gt;
  
                  &lt;ImageView
                      android:id="@+id/article_image"
                      android:layout_width="0dip"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_vertical"
                      android:layout_weight="1" /&gt;
  
                  &lt;ImageView
                      android:id="@+id/article_image_next"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_vertical"
                      android:src="@drawable/sipka_p" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:id="@+id/image_desc"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentBottom="true"
                  android:background="@color/tran_dark_gray"
                  android:gravity="center"
                  android:padding="@dimen/size_8"
                  android:textAppearance="@style/xsmallLight" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;ScrollView
              android:layout_width="match_parent"
              android:layout_height="0dip"
              android:layout_weight="6"
              android:background="@color/opaq_light"
              android:orientation="horizontal" &gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  android:padding="@dimen/size_16" &gt;
  
                  &lt;TextView
                      android:id="@+id/article_title"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:paddingBottom="@dimen/size_12"
                      android:textAppearance="@style/normalBold" /&gt;
  
                  &lt;TextView
                      android:id="@+id/article_body"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:textAppearance="@style/xsmall" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/ScrollView&gt;
      &lt;/LinearLayout&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p></p>