Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout 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"
- android:background="@color/primary_black"
- tools:context=".presentation.onboarding.OnBoardingActivity">
- <androidx.viewpager.widget.ViewPager
- android:id="@+id/view_pager_onboarding"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- app:layout_constraintBottom_toTopOf="@+id/tab_layout_dot"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <com.google.android.material.tabs.TabLayout
- android:id="@+id/tab_layout_dot"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_marginStart="56dp"
- android:layout_marginTop="56dp"
- android:layout_marginEnd="56dp"
- android:background="@color/primary_black"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintBottom_toTopOf="@+id/layout_skip_next"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintStart_toStartOf="parent"
- app:tabBackground="@drawable/tab_selector_onboarding"
- app:tabGravity="center"
- app:tabIndicatorHeight="0dp" />
- <RelativeLayout
- android:id="@+id/layout_skip_next"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="40dp"
- android:orientation="horizontal"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent">
- <TextView
- android:id="@+id/btn_skip"
- style="@style/TextRegular"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:layout_marginTop="20dp"
- android:text="@string/skip"
- android:textColor="@color/teal_200"
- android:textSize="15sp"
- android:textStyle="bold"
- android:visibility="visible" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/btn_next"
- android:layout_width="wrap_content"
- android:layout_height="50dp"
- android:layout_alignParentTop="true"
- android:layout_alignParentEnd="true"
- android:drawableEnd="@drawable/ic_baseline_arrow_forward_24"
- android:drawableTint="@color/white"
- android:text="@string/next"
- android:textAllCaps="false"
- android:visibility="visible"
- app:cornerRadius="40dp"
- tools:targetApi="m" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/btn_browse"
- android:layout_width="wrap_content"
- android:layout_height="50dp"
- style="@style/Widget.MaterialComponents.Button.OutlinedButton"
- app:strokeColor="@color/green"
- android:layout_alignParentStart="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:layout_marginEnd="10dp"
- android:text="@string/browse"
- android:textAllCaps="false"
- android:visibility="gone"
- app:cornerRadius="40dp" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/btn_sign_in"
- android:visibility="gone"
- android:layout_width="wrap_content"
- android:layout_height="50dp"
- android:layout_marginEnd="10dp"
- android:layout_alignParentTop="true"
- android:layout_alignParentEnd="true"
- android:text="@string/sign_in"
- android:textAllCaps="false"
- app:cornerRadius="40dp" />
- </RelativeLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement