2017-05-26 3 views
1

私は最近、新しいAndroid Studioプロジェクトに挿入するためにgif画像をダウンロードしました。ダウンロード後、私は.gifファイルをドロウアブルフォルダにコピーしました。私はそれを「イメージ」と呼んだ。問題がないapparenceでAndroid StudioプロジェクトでgifImageViewを実行

<ImageView 
     android:id="@+id/imageView" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     app:srcCompat="@drawable/image" 
     app:layout_constraintTop_toTopOf="parent" 
     android:layout_marginTop="8dp" 
     app:layout_constraintBottom_toBottomOf="parent" 
     android:layout_marginBottom="8dp" 
     app:layout_constraintVertical_bias="0.498" 
     android:layout_marginRight="8dp" 
     app:layout_constraintRight_toRightOf="parent" 
     android:layout_marginLeft="8dp" 
     app:layout_constraintLeft_toLeftOf="parent" 
     app:layout_constraintHorizontal_bias="0.595" /> 

...しかし、私は私のアプリを起動したときにGIFは動作しません:activity_mainレイアウトのセクション「テキスト」で、私はこれを書きました。 .jpgファイルイメージのように静的です。 Androidモバイル上のアプリケーションで.gifイメージを再生するにはどうすればよいですか?

答えて

1

イメージビューを使用しても、あなたがしようとしていることはできません。 GIFを見るにはいくつかの方法があります。 example linkを入力するか、単にlibraryを使用します。

関連する問題