Android 半隐藏视图的平移图像化

Android 半隐藏视图的平移图像化,android,android-listview,Android,Android Listview,在平移过程中,我试图将视图从窗口外移到窗口内 在一项建议中,他们说使用滚动视图,但即使使用滚动视图,也没有任何变化 还有其他的方法吗 编辑 这是布局图: <RelativeLayout android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/login_linear_layout" android:la

在平移过程中,我试图将视图从窗口外移到窗口内

在一项建议中,他们说使用滚动视图,但即使使用滚动视图,也没有任何变化

还有其他的方法吗

编辑

这是布局图:

<RelativeLayout android:layout_width="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/login_linear_layout"
    android:layout_height="wrap_content"
    android:background="@color/background_box" >

    <com.project.view.PullToRefreshListView
        android:dividerHeight="0dp"
        android:divider="#000"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        android:id="@+id/mainList"
        android:background="@color/background_list"
        />

    <include layout="@layout/element_contacts_button"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true" />
</RelativeLayout>

当我拖动..的listview项时出现问题。。它只对视图的其余部分设置动画,而不是对整个视图设置动画。

问题是,当我将视图移到父视图之外时,视图被剪切

解决方案是将此选项添加到parentView:

android:clipChildren="false"

这样,parentView就不会剪切childView,而在从外到内的转换中,视图仍然会像以前一样完整。

如果您发布.gif图像或详细解释,效果会更好。请编辑简介。。现在好多了?:)
android:clipChildren="false"