nirhart / ParallaxScroll

Parallax ScrollView and ListView for Android
MIT License
848 stars 187 forks source link

bottom of parallaxScroll not showing completely #40

Closed mlkmhd closed 9 years ago

mlkmhd commented 9 years ago

Hi, thank you for building this parallax scroll view. I have a problem. i have a LinearLayout inside a parallaxview and inside that i have two RelativeLayout. the bottom of second RelativeLayout not showing completely.

<com.nirhart.parallaxscroll.views.ParallaxScrollView 
        xmlns:tools="http://schemas.android.com/tools"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="none"
        app:inner_parallax_factor="1.9"
        app:parallax_factor="1.9"
        app:parallax_views_num="3"
        android:fillViewport="true"
        android:fadingEdge="none">

        <LinearLayout
            android:id="@+id/ll_content"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="vertical">

<!-- first view -->
            <RelativeLayout
                android:id="@+id/rr_cover"
                android:layout_width="match_parent"
                android:layout_height="150dp">

                <ImageView
                    android:id="@+id/img_cover"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:scaleType="centerCrop" />

            </RelativeLayout>

<!-- second view -->
        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:background="?android:windowBackground">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true">

                <ImageButton
                    android:id="@+id/img_add_to_wish_list"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:background="@drawable/shape_button_show_comments"
                    android:src="@drawable/add_to_favorites" />

                <ImageButton
                    android:id="@+id/btn_show_comments"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:text="@string/comments"
                    android:background="@drawable/shape_button_show_comments"
                    android:src="@drawable/comment_bubble" />

            </LinearLayout>
        </LinearLayout>
    </com.nirhart.parallaxscroll.views.ParallaxScrollView>

and this is output screenshot from 2015-03-19 13 42 54

bottom of screen not showing when full scroll to bottom