Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
EhViewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
NekoInverter
EhViewer
Commits
0631c292
Commit
0631c292
authored
10 years ago
by
seven332
Browse files
Options
Downloads
Patches
Plain Diff
调整阅读界面滑调消失显示动画
parent
fbd9e935
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/com/hippo/ehviewer/ui/GalleryActivity.java
+24
-20
24 additions, 20 deletions
src/com/hippo/ehviewer/ui/GalleryActivity.java
with
24 additions
and
20 deletions
src/com/hippo/ehviewer/ui/GalleryActivity.java
+
24
−
20
View file @
0631c292
...
...
@@ -86,26 +86,30 @@ public class GalleryActivity extends Activity
void
setFullScreen
(
final
boolean
fullScreen
)
{
mFullScreenHelper
.
setFullScreen
(
fullScreen
);
AlphaAnimation
aa
=
fullScreen
?
new
AlphaAnimation
(
1.0f
,
0.0f
)
:
new
AlphaAnimation
(
0.0f
,
1.0f
);
aa
.
setDuration
(
Constants
.
ANIMATE_TIME
);
aa
.
setAnimationListener
(
new
AnimationListener
()
{
@Override
public
void
onAnimationStart
(
Animation
animation
)
{
mFooter
.
setVisibility
(
View
.
VISIBLE
);
}
@Override
public
void
onAnimationEnd
(
Animation
animation
)
{
if
(
fullScreen
)
mFooter
.
setVisibility
(
View
.
INVISIBLE
);
}
@Override
public
void
onAnimationRepeat
(
Animation
animation
)
{
// Empty
}
});
mFooter
.
startAnimation
(
aa
);
if
(!(
fullScreen
&&
mFooter
.
getVisibility
()
==
View
.
GONE
)
&&
!(!
fullScreen
&&
mFooter
.
getVisibility
()
==
View
.
VISIBLE
))
{
AlphaAnimation
aa
=
fullScreen
?
new
AlphaAnimation
(
1.0f
,
0.0f
)
:
new
AlphaAnimation
(
0.0f
,
1.0f
);
aa
.
setDuration
(
Constants
.
ANIMATE_TIME
);
aa
.
setAnimationListener
(
new
AnimationListener
()
{
@Override
public
void
onAnimationStart
(
Animation
animation
)
{
mFooter
.
setVisibility
(
View
.
VISIBLE
);
}
@Override
public
void
onAnimationEnd
(
Animation
animation
)
{
if
(
fullScreen
)
mFooter
.
setVisibility
(
View
.
GONE
);
}
@Override
public
void
onAnimationRepeat
(
Animation
animation
)
{
// Empty
}
});
mFooter
.
startAnimation
(
aa
);
}
if
(!
fullScreen
)
startFullScreenTask
();
...
...
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