Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 登录后主页向下滚动_Java_Android_Xml_Parallax - Fatal编程技术网

Java 登录后主页向下滚动

Java 登录后主页向下滚动,java,android,xml,parallax,Java,Android,Xml,Parallax,在我的应用程序登录后的屏幕上,我被引导到主页,但我的主页在底部滚动。我的主页的代码在下面,它由LinearLayout内部的ParallaxScrollView组成 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:custom="http://schemas.an

在我的应用程序登录后的屏幕上,我被引导到主页,但我的主页在底部滚动。我的主页的代码在下面,它由LinearLayout内部的ParallaxScrollView组成

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:custom="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:theme="@style/AppTheme1">

    <com.nirhart.parallaxscroll.views.ParallaxScrollView
        android:id="@+id/parallaxScrollView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="none"
        android:visibility="gone"
        app:parallax_factor="1.9"
        tools:context=".LandingActivity">

  /* Here there is a Relative Layout inside a Linear Layout which consists of two SliderLayout and HorizontalRecyclerView*/

 </com.nirhart.parallaxscroll.views.ParallaxScrollView>
<RelativeLayout
        android:id="@+id/loadingPanel"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:visibility="visible">

        <ProgressBar
            style="@style/CustomProgressDialogWithTransparentBackground"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:indeterminate="true"
            android:indeterminateDrawable="@drawable/custom_progress_dialog" />
    </RelativeLayout>
</LinearLayout>

/*在线性布局中有一个相对布局,由两个滑块布局和水平循环视图组成*/

试试看。

实际上我用的是一个片段
scrollViewEventDetails.fullScroll(View.FOCUS_UP);//if you move at the end of the scroll