Added a parallax effect to the intro.
This commit is contained in:
parent
19bbf2565e
commit
ca238fc69a
2 changed files with 6 additions and 6 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"
|
||||
|
|
@ -12,9 +13,10 @@
|
|||
android:id="@id/mi_image"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
app:layout_parallaxFactor="0.75"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/tutorial_queue_swipe_up" />
|
||||
|
||||
|
|
@ -33,9 +35,9 @@
|
|||
android:id="@id/mi_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
tools:ignore="UnusedAttribute"
|
||||
tools:text="Lorem ipsum" />
|
||||
|
||||
|
|
@ -50,4 +52,4 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</com.heinrichreimersoftware.materialintro.view.parallax.ParallaxLinearLayout>
|
||||
|
|
@ -29,7 +29,6 @@
|
|||
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" />
|
||||
|
||||
|
|
@ -40,7 +39,6 @@
|
|||
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, …" />
|
||||
|
||||
</com.heinrichreimersoftware.materialintro.view.parallax.ParallaxLinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue