<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.audiostreet.LoginActivity$PlaceholderFragment" >
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/loading" />
<com.example.customview.TextViewWithCustomFont
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/app_name"
android:textSize="15dp" />
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/loading" />
<LinearLayout android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
></LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:gravity="bottom"
android:orientation="vertical" >
<ImageView
android:id="@+id/facebookButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:contentDescription="@null"
android:src="@drawable/loading" />
<ImageView
android:id="@+id/twitterButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:contentDescription="@null"
android:src="@drawable/loading" />
<ImageView
android:id="@+id/emailButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:contentDescription="@null"
android:src="@drawable/loading" />
</LinearLayout>
</LinearLayout>
Do you really need ScrollView? If not than try this, otherwise scroll view will try to get minimum height of view, and my placeholder will be flattened.
Alternative is to put Buttons under ScrollView.
Last solution i see, if you really need anything in scrollView, than try to Generate your own LinearLayout and than place views on your own.