Skip to content

Instantly share code, notes, and snippets.

View PatrykAndroid's full-sized avatar

PatrykAndroid

View GitHub Profile
class Item(val color: Int)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/viewPager2"
android:layout_width="match_parent"
dependencies {
...
implementation "androidx.viewpager2:viewpager2:1.0.0"
...
}