Android Studio Make gif


Build Gradle Project

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }

Android Studio Design Animation


Build Gradle Module

implementation 'pl.droidsonroids.gif:android-gif-drawable:1.1.17'

Android Studio Design Animation


Main Activity

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout

        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"
        tools:context=".design7part5">


    <pl.droidsonroids.gif.GifImageView
            android:id="@+id/gifImageView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginTop="291dp"
            android:src="@drawable/anim"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.461"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintVertical_bias="0.0" />


</androidx.constraintlayout.widget.ConstraintLayout>

Android Studio Design Animation

Subscribe to receive free email updates:

0 Response to "Android Studio Make gif"

Post a Comment