Last active
April 3, 2020 18:57
-
-
Save FarshadTahmasbi/f651de78426763bd0d585a6e44fb698c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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:id="@+id/motion" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layoutDescription="@xml/scene_recyclerview_motion" | |
tools:context=".MainActivity"> | |
<com.google.android.material.appbar.AppBarLayout | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
tools:ignore="MissingConstraints"> | |
<androidx.appcompat.widget.Toolbar | |
android:layout_width="match_parent" | |
android:layout_height="?actionBarSize" | |
app:title="@string/title_toolbar" | |
app:titleTextColor="#fff" /> | |
</com.google.android.material.appbar.AppBarLayout> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/rv_image" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:clipToPadding="false" | |
android:padding="4dp" | |
android:splitMotionEvents="false" | |
app:spanCount="3" | |
tools:itemCount="10" | |
tools:layoutManager="androidx.recyclerview.widget.GridLayoutManager" | |
tools:listitem="@layout/item_image" | |
tools:ignore="MissingConstraints" /> | |
<androidx.appcompat.widget.AppCompatImageView | |
android:id="@+id/img_header" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:background="@color/colorPrimary" | |
android:scaleType="fitCenter" | |
tools:ignore="MissingConstraints" /> | |
<androidx.appcompat.widget.AppCompatTextView | |
android:id="@+id/text_title" | |
android:layout_width="wrap_content" | |
android:fontFamily="sans-serif-black" | |
android:textStyle="bold" | |
android:padding="8dp" | |
android:layout_height="wrap_content" | |
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline6" | |
android:textColor="@android:color/white" | |
tools:ignore="MissingConstraints" /> | |
<androidx.appcompat.widget.AppCompatTextView | |
android:id="@+id/text_desc" | |
android:textColor="@android:color/white" | |
android:layout_width="0dp" | |
android:textSize="14sp" | |
android:layout_height="0dp" | |
tools:ignore="MissingConstraints" /> | |
<androidx.appcompat.widget.AppCompatImageView | |
android:id="@+id/img_motion" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:scaleType="centerCrop" | |
android:visibility="visible" | |
tools:ignore="MissingConstraints" /> | |
</androidx.constraintlayout.motion.widget.MotionLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment