Created
August 14, 2020 16:30
-
-
Save yuriyskulskiy/946e035ee5a12f63497c0ec07c7676b6 to your computer and use it in GitHub Desktop.
AnimatedLayout part 2: add additional child to layout
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"?> | |
<com.example.animated.article.custom.AnimatedLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/transformItem" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
... | |
<de.hdodenhof.circleimageview.CircleImageView | |
android:id="@+id/weatherIconIV" | |
android:layout_width="36dp" | |
android:layout_height="36dp" | |
android:layout_marginTop="24dp" | |
android:layout_marginEnd="24dp" | |
android:layout_marginRight="16dp" | |
android:cropToPadding="true" | |
android:src="@drawable/ic_sun" | |
app:civ_border_color="@android:color/white" | |
app:civ_border_width="2dp" | |
app:civ_circle_background_color="@color/weather_icon_background_summer" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
</com.example.animated.article.custom.AnimatedLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment