首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >登录后向下滚动HomePage

登录后向下滚动HomePage
EN

Stack Overflow用户
提问于 2017-02-24 16:07:39
回答 1查看 33关注 0票数 0

在我的应用程序登录屏幕后,我被定向到主页,但我的主页在bottom.The滚动,我的主页代码在下面,它由LinearLayout内部的ParallaxScrollView组成。

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

发布于 2017-02-24 16:46:56

代码语言:javascript
复制
scrollViewEventDetails.fullScroll(View.FOCUS_UP);//if you move at the end of the scroll

试试看。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42433603

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档