Fancycoverflow Layout, how to put gallery in the middle of vertical direction



This is the link of Fancycoverflow: Fancycoverflow


I want to put the image gallery in the middle of vertical direction. And make the image in gallery as large as possible. But the image in the gallery is always half size in height. The Red/green container are text view. What I expect


This is my layout:



<LinearLayout xmlns:android="http://ift.tt/nIICcg"
xmlns:tools="http://ift.tt/LrGmb4"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/image_screen_background"
android:layout_weight="1"
>

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="40"
android:background="#FF0000"/>


<com.example.demo.FancyCoverFlow
xmlns:fcf="http://ift.tt/GEGVYd"
android:id="@+id/fancyCoverFlow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
fcf:maxRotation="45"
fcf:unselectedAlpha="0.3"
fcf:unselectedSaturation="0.0"
fcf:unselectedScale="0.4"
fcf:scaleDownGravity="0.5"
android:layout_weight="50"
android:background="#0000FF"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="10"
android:background="#00FF00"/>


Would you guys help me out?


No comments:

Post a Comment