如何增加旋转木马图像空间? [英] how to increase carousel image space?

查看:153
本文介绍了如何增加旋转木马图像空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在下面链接的旋转木马演示源$ C ​​$ C链接

我的疑问是,如果我添加更多的图像时,图像的差距也非常低,如何提高图像的空间,多了一个疑问,底部的图像反射隐藏如何让底部反射图像.....

这是我的XML数据源:

 < XML版本=1.0编码=UTF-8&GT?;
<的LinearLayout
    的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
    的xmlns:PJ =htt​​p://schemas.android.com/apk/res/com.carouseldemo.main
    的xmlns:BM =com.carouseldemo.main
    机器人:方向=垂直
    机器人:layout_width =FILL_PARENT
    机器人:layout_height =FILL_PARENT
    >
    <的LinearLayout
        机器人:layout_weight =0.5
        机器人:填充=5dip
        机器人:重力=顶
        机器人:layout_width =FILL_PARENT
        机器人:layout_height =FILL_PARENT
        >
            < com.carouseldemo.controls.Carousel
                机器人:layout_width =FILL_PARENT
                机器人:layout_height =FILL_PARENT
                机器人:ID =@ + ID /旋转木马
                PJ:UseReflection =真
                PJ:项目=@阵列/条目
                PJ:的SelectedItem =0
                机器人:animationDuration =200
            />
    < / LinearLayout中>
< / LinearLayout中>
 

请看看我的屏幕截图:

解决方案

应该在 Carousel.java 文件中定义。请查看以下功能

  

SRC / COM / carouseldemo /控制/ Carousel.java

  getChildStaticTransformation
makeAndAddView
setUpChild
Calculate3DPosition
 

I downloaded sample android carousel demo source code in below link carousel demo source code link

my doubt is if I add more images, images gap is very low so how to increase images space and one more doubt bottom image reflection is hide how to get bottom reflection image.....

this is my xml source:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:pj="http://schemas.android.com/apk/res/com.carouseldemo.main"
    xmlns:bm="com.carouseldemo.main"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <LinearLayout
        android:layout_weight="0.5"
        android:padding="5dip"
        android:gravity="top"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" 
        >
            <com.carouseldemo.controls.Carousel
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:id="@+id/carousel"  
                pj:UseReflection="true"
                pj:Items="@array/entries"
                pj:SelectedItem="0"
                android:animationDuration="200"
            />      
    </LinearLayout>     
</LinearLayout>

pls see my screen shot:

解决方案

It should be defined in Carousel.java file. Please check the following functions in

src/com/carouseldemo/controls/Carousel.java

getChildStaticTransformation  
makeAndAddView  
setUpChild  
Calculate3DPosition 

这篇关于如何增加旋转木马图像空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆