2017-02-24 6 views
0

In meiner App nach dem Login-Bildschirm bin ich auf die Startseite gerichtet, aber meine Homepage scrollt unten. Der Code meiner Homepage ist darunter ParallaxScrollView innerhalb LinearLayout.HomePage Scrollen nach Login

<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> 

Antwort

0
scrollViewEventDetails.fullScroll(View.FOCUS_UP);//if you move at the end of the scroll 

es versuchen.

+0

Eigentlich verwende ich ein Fragment – Nikhil

+0

@ T.Dimitrov Es funktioniert nicht – Nikhil