将交互式电影添加到Android应用程序 [英] Adding interactive movie to Android application
问题描述
我正在Android平台上构建一个新的应用程序,我需要添加一个交互式电影,向用户展示如何使用该应用程序。
我想要像愤怒的小鸟一样的视频,按钮传播到对话框的外部。
像这样:
首先,虽然我需要某种动画视频,但我查看了 Android视频视图,但是我不知道如何使用它,如果我真的需要它?
其次是这个窗口是一个常规的对话框别的什么
我尝试了常规对话框,但我没有想到这个按钮,所有的按钮都在对话框本身内,我不能像我不喜欢(例如愤怒的小鸟对话框)显示它。 / p>
任何帮助都会很棒,谢谢。
编辑:这是自定义对话框:
<?xml version =1.0encoding =utf-8?>
< RelativeLayout
xmlns:android =http://schemas.android.com/apk/res/android
android:layout_width =fill_parent
android:layout_height =fill_parent>
< TextView
android:id =@ + id / videoView
android:layout_width =fill_parent
android:layout_height =wrap_content
android:text =Test Test
android:textSize =50dip
android:textColor =@ android:color / white/>
< ImageView
android:id =@ + id / imageView1
android:layout_width =wrap_content
android:layout_height =wrap_content
android:layout_alignParentBottom =true
android:layout_alignRight =@ id / videoView
android:layout_marginBottom =20dp
android:layout_marginRight =85dp
android :src =@ drawable / ic_launcher/>
< / RelativeLayout>
这是我得到的:
愤怒的小鸟不使用Android Ui元素。他们使用自定义框架来显示对话框。因此,您还需要自定义您自己的对话框。
如果您的应用程序真的需要一个视频来演示其使用,或许您应该重新考虑应用程序的功能。也许一个简单的应用程序可以使用一组截图和注释。
I'm building a new application to the Android platform and I need to add an interactive movie that would show to the user, how to use the application.
I want something like the video in Angry Birds, with the button that spreads to the outside of the dialog.
Like this:
First I though that I need some kind of a animation video, so I checked the Android video view, but I can't figure out how to use it, and if I actually need it?
Secondly is this window is a regular dialog or something else? I tried the regular dialog but I didn't came with the idea of this button, all the buttons is inside the dialog itself and I can't show it like I wan't (e.g. Angry Birds dialog).
Any help will be great, Thanks.
EDIT: This is the custom dialog:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/videoView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Test Test"
android:textSize="50dip"
android:textColor="@android:color/white"/>
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignRight="@id/videoView"
android:layout_marginBottom="20dp"
android:layout_marginRight="85dp"
android:src="@drawable/ic_launcher" />
</RelativeLayout>
And this is what I get:
Angry birds doesn't use the the Android Ui elements. They use a custom framework to show their dialogs. Therefore you will need to customize your own dialog as well.
If you your application really needs a video to demonstrate its use, maybe you should reconsider your application functionallity. Maybe a simple application will do with a set of screenshots and annotations.
这篇关于将交互式电影添加到Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!