Loading java/res/layout/setup_welcome_video.xml +1 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ android:layout_height="0dp" /> <VideoView android:id="@+id/setup_welcome_video" android:background="@color/setup_background" android:layout_weight="@integer/setup_welcome_video_weight_in_screen" android:layout_marginTop="@dimen/setup_welcome_video_vertical_margin" android:layout_marginBottom="@dimen/setup_welcome_video_vertical_margin" Loading java/src/com/android/inputmethod/latin/setup/SetupActivity.java +8 −0 Original line number Diff line number Diff line Loading @@ -190,6 +190,14 @@ public final class SetupActivity extends Activity implements View.OnClickListene mp.start(); } }); mWelcomeVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { @Override public void onPrepared(final MediaPlayer mp) { // Now VideoView has been laid-out and ready to play, remove background of it to // reveal the video. mWelcomeVideoView.setBackgroundResource(0); } }); mActionStart = findViewById(R.id.setup_start_label); mActionStart.setOnClickListener(this); Loading Loading
java/res/layout/setup_welcome_video.xml +1 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ android:layout_height="0dp" /> <VideoView android:id="@+id/setup_welcome_video" android:background="@color/setup_background" android:layout_weight="@integer/setup_welcome_video_weight_in_screen" android:layout_marginTop="@dimen/setup_welcome_video_vertical_margin" android:layout_marginBottom="@dimen/setup_welcome_video_vertical_margin" Loading
java/src/com/android/inputmethod/latin/setup/SetupActivity.java +8 −0 Original line number Diff line number Diff line Loading @@ -190,6 +190,14 @@ public final class SetupActivity extends Activity implements View.OnClickListene mp.start(); } }); mWelcomeVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { @Override public void onPrepared(final MediaPlayer mp) { // Now VideoView has been laid-out and ready to play, remove background of it to // reveal the video. mWelcomeVideoView.setBackgroundResource(0); } }); mActionStart = findViewById(R.id.setup_start_label); mActionStart.setOnClickListener(this); Loading