hyperrail/hyperrail-for-android

View on GitHub
Hyperrail/src/main/res/layout/activity_first_launch_guide.xml

Summary

Maintainability
Test Coverage
<!--
  ~ This Source Code Form is subject to the terms of the Mozilla Public
  ~ License, v. 2.0. If a copy of the MPL was not distributed with this
  ~ file, You can obtain one at http://mozilla.org/MPL/2.0/.
  -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/colorPrimaryDark">

    <androidx.viewpager.widget.ViewPager
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/dotTab"
        tools:context="be.hyperrail.android.activities.FirstLaunchGuide" />

    <com.google.android.material.tabs.TabLayout
        android:id="@+id/dotTab"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_toLeftOf="@id/button_next"
        android:layout_toRightOf="@id/button_skip"
        app:tabBackground="@drawable/dottab_selector"
        app:tabGravity="center"
        app:tabIndicatorHeight="0dp" />

    <Button
        android:id="@+id/button_skip"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:background="@android:color/transparent"
        android:gravity="center_vertical|left"
        android:padding="16dp"
        android:text="@string/skip"
        android:textColor="@color/colorTextAlwaysLight" />

    <Button
        android:id="@+id/button_next"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:layout_weight="1"
        android:background="@android:color/transparent"
        android:gravity="center_vertical|right"
        android:padding="16dp"
        android:text="@string/next"
        android:textColor="@color/colorTextAlwaysLight" />
</RelativeLayout>