Skip to content

Instantly share code, notes, and snippets.

@yashwantGowla
Last active June 5, 2021 10:47
Show Gist options
  • Save yashwantGowla/425d5ad6d56b4a26904f1a229cf9c0fe to your computer and use it in GitHub Desktop.
Save yashwantGowla/425d5ad6d56b4a26904f1a229cf9c0fe to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.motion.widget.MotionLayout 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"
app:layoutDescription="@xml/activity_main_scene"
tools:context=".MainActivity"
android:background="@color/white">
<ImageView
android:id="@+id/imageViewLogo"
android:layout_width="300dp"
android:layout_height="300dp"
android:src="@drawable/ic_android_logo"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:contentDescription="@string/app_name" />
</androidx.constraintlayout.motion.widget.MotionLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment