안녕하세요.
비디오뷰 관련해서 질문이 있습니다.
아래의 코드를 실행을 하면, 비디오가 잘 실행이 되는데, 저같은 경우 스위치문안에 개별적으로 넣어주어야 하는데 그 방법을 잘 모르겠습니다. 아래의 xml파일과, java 파일 두가지는 실행을 하면, ras에 있는 있는 fountain.mp4에 영상이 잘 진행이 됩니다. 그런데, 맨 아래의 다른 파일에서, 각각 case별로 다른 영상들을 이미지뷰안에 넣어주고 실행을 하려고 하는데.. 구성을 어떻게 해주어야 할지 .. 잘 모르겠습니다.
소스가 넘치는 부분은, 아래에 좀 붙여보겠습니다.
<xml 파일>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.it.vedio.MainActivity">
<LinearLayout
android:onClick="play"
android:clickable="true"
android:paddingTop="2sp"
android:paddingBottom="2sp"
android:tag="fountain_night"
android:id="@+id/video1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">