Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
732c9381
Commit
732c9381
authored
11 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of janky black box before the movie starts
Bug: 8159728 Change-Id: I1d0a01a05b3b694d21fdfdc246d1329ab829908d
parent
df3ca042
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/res/layout/setup_welcome_video.xml
+1
-0
1 addition, 0 deletions
java/res/layout/setup_welcome_video.xml
java/src/com/android/inputmethod/latin/setup/SetupActivity.java
+8
-0
8 additions, 0 deletions
...rc/com/android/inputmethod/latin/setup/SetupActivity.java
with
9 additions
and
0 deletions
java/res/layout/setup_welcome_video.xml
+
1
−
0
View file @
732c9381
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/setup/SetupActivity.java
+
8
−
0
View file @
732c9381
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment