app/src/main/res/layout/activity_welcome.xml
<?xml version="1.0" encoding="utf-8"?>
<com.androidstudy.andelatrackchallenge.view.ScrimInsetsFrameLayout 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:id="@+id/welcome_root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:background="@color/bg_screen1"
tools:context="com.androidstudy.andelatrackchallenge.WelcomeActivity">
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true" />
<com.androidstudy.andelatrackchallenge.widget.InkPageIndicator
android:id="@+id/page_indicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_margin="@dimen/padding_normal"
app:currentPageIndicatorColor="?colorAccent"
app:pageIndicatorColor="?dividerColor" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:layout_marginBottom="48dp"
android:alpha=".5"
android:background="@android:color/white" />
<Button
android:id="@+id/btn_next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:background="@null"
android:text="@string/next"
android:textColor="@android:color/white" />
<Button
android:id="@+id/btn_skip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|start"
android:background="@null"
android:text="@string/skip"
android:textColor="@android:color/white" />
</com.androidstudy.andelatrackchallenge.view.ScrimInsetsFrameLayout>