Skip to content

Instantly share code, notes, and snippets.

@hongbeomi
Created June 13, 2021 02:40
Show Gist options
  • Save hongbeomi/62c3002253cf87c1045d78b9f8b581a9 to your computer and use it in GitHub Desktop.
Save hongbeomi/62c3002253cf87c1045d78b9f8b581a9 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:bind="http://schemas.android.com/tools"
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">
<data>
<variable
name="adapter"
type="com.hongbeomi.harrypotter.ui.main.MainAdapter" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background"
tools:context=".ui.main.MainActivity">
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/animationView_lightning"
android:layout_width="0dp"
android:layout_height="0dp"
android:scaleType="centerCrop"
app:lottie_autoPlay="true"
app:lottie_loop="true"
app:lottie_rawRes="@raw/lightning"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<ImageView
android:id="@+id/imageView_main_logo"
android:layout_width="288dp"
android:layout_height="120dp"
android:layout_marginTop="128dp"
android:src="@drawable/logo"
android:scaleType="fitXY"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/scrollView_main_list"/>
<com.yarolegovich.discretescrollview.DiscreteScrollView
android:id="@+id/scrollView_main_list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="24dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/imageView_main_logo"
app:layout_constraintBottom_toBottomOf="parent"
bind:adapter="@{adapter}"
bind:transformer="@{true}"
tools:listitem="@layout/item_house"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment