Android-如何使用组图片从SD卡进行视频?组图、如何使用、视频、Android

2023-09-07 16:16:58 作者:从你的全世界路过

我想通过我的Andr​​oid应用程序创建使用从SD卡图像的视频。

I want to create a video using images from a sdcard through my application in android.

推荐答案

使用帧动画

在XML中定义的动画,显示的图像,以一序列(如薄膜)。

An animation defined in XML that shows a sequence of images in order (like a film).

<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
    android:oneshot=["true" | "false"] >
    <item
        android:drawable="@[package:]drawable/drawable_resource_name"
        android:duration="integer" />
</animation-list>

请参阅本: