I use Fragmentin my android application. This one Fragmentdoes not have its own element Toolbaror android.support.v7.widget.Toolbar, but uses getSupportActionBar()parental activity from it. Now I want to tune Parallax Scrolling ScrollViewin infoRL.
I checked out some of the resources on the Internet, but most of them belong to the Parallax a ScrollViewfor ImageViewor used Toolbarin the layout.
So, I was wondering how I can structure them.
This is how my file is structured layout.xml.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
layout="@layout/custom_toolbar"/>
<LinearLayout
android:id="@+id/infoRL"
android:orientation="vertical"
android:paddingTop="40dp"
android:layout_width="match_parent"
android:paddingBottom="40dp"
android:layout_height="wrap_content"
android:background="@color/treasur_yellow"
android:layout_below="@+id/custom_toolbar_element">
<com.joooonho.SelectableRoundedImageView
android:id="@+id/profileImageView"
android:layout_width="128dp"
android:layout_gravity="center_horizontal"
android:layout_height="128dp"
android:layout_centerHorizontal="true"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
app:sriv_left_bottom_corner_radius="0dp"
app:sriv_oval="true"
app:sriv_right_bottom_corner_radius="0dp" />
<hunt.ayush.com.traserhunt.utility.CentuaryGothicTextView
android:id="@+id/userName"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageBorderLayout"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:text="Fetching Name"
android:textColor="@color/treasure_black"
android:textSize="20sp" />
</LinearLayout>
<ScrollView />
</RelativeLayout>
source
share