-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Description
i'm implementing Parallax effect on one of my fragments , that contains of an ImageView and a GridView below that. if i use wrap_content for my GridView it's height change to just one row of my grid and there is no parallax effect , but if i use a fixed height for GridView it would be working. how can i make it work with wrap_content?
<com.nirhart.parallaxscroll.views.ParallaxScrollView xmlns:android="http://schemas.android.com/apk/res/android"
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"
app:parallax_factor="1.9" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/img_gallery_selected"
android:layout_width="match_parent"
android:layout_height="220dp"
android:scaleType="centerCrop"
tools:ignore="HardcodedText"/>
<GridView
android:id="@+id/gridView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnWidth="90dp"
android:numColumns="auto_fit"
android:verticalSpacing="2dp"
android:horizontalSpacing="2dp"
android:stretchMode="columnWidth"
android:gravity="center"
tools:ignore="HardcodedText">
</GridView>
</LinearLayout>
</com.nirhart.parallaxscroll.views.ParallaxScrollView>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels