Added a parallax effect to the intro.
This commit is contained in:
parent
cea6a7bea8
commit
19bbf2565e
1 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.heinrichreimersoftware.materialintro.view.parallax.ParallaxLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
|
@ -16,6 +17,7 @@
|
|||
android:layout_marginBottom="@dimen/mi_baseline"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
app:layout_parallaxFactor="0.75"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/tutorial_queue_swipe_up" />
|
||||
|
||||
|
|
@ -27,6 +29,7 @@
|
|||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
|
||||
app:layout_parallaxFactor="0"
|
||||
tools:ignore="UnusedAttribute"
|
||||
tools:text="Lorem ipsum" />
|
||||
|
||||
|
|
@ -37,6 +40,7 @@
|
|||
android:layout_marginTop="@dimen/mi_baseline"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
||||
app:layout_parallaxFactor="0"
|
||||
tools:text="Lorem ipsum dolor sit amet, consectetur, adipisci velit, …" />
|
||||
|
||||
</LinearLayout>
|
||||
</com.heinrichreimersoftware.materialintro.view.parallax.ParallaxLinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue