0
在我的應用程序登錄後屏幕後,我被定向到主頁,但我的主頁是滾動在bottom.The我的主頁的代碼是在它下面包含ParallaxScrollView內LinearLayout。首頁滾動下載後登錄
<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>
其實我正在使用片段 – Nikhil
@ T.Dimitrov它不起作用 – Nikhil