Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
d6c88bc3
Verified
Commit
d6c88bc3
authored
2 years ago
by
Andrew Churyla
Browse files
Options
Downloads
Patches
Plain Diff
Use FrameLayout for player_ui_container
parent
687986d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1379
Optimize UI performance
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
application/vlc-android/res/layout/player.xml
+9
-15
9 additions, 15 deletions
application/vlc-android/res/layout/player.xml
application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
+2
-1
2 additions, 1 deletion
.../org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
with
11 additions
and
16 deletions
application/vlc-android/res/layout/player.xml
+
9
−
15
View file @
d6c88bc3
...
...
@@ -62,7 +62,7 @@
android:background=
"@drawable/gradient_title_player"
android:visibility=
"gone"
/>
<
Relativ
eLayout
<
Fram
eLayout
android:id=
"@+id/player_ui_container"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
...
...
@@ -78,8 +78,7 @@
android:id=
"@+id/player_overlay_loading"
android:layout_width=
"80dp"
android:layout_height=
"80dp"
android:layout_centerHorizontal=
"true"
android:layout_centerInParent=
"true"
android:layout_gravity=
"center"
android:visibility=
"invisible"
app:srcCompat=
"@drawable/ic_cone_o"
/>
...
...
@@ -87,7 +86,7 @@
android:id=
"@+id/player_info_stub"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_
centerInParent=
"true
"
android:layout_
gravity=
"center
"
android:layout_marginBottom=
"@dimen/default_margin"
android:layout=
"@layout/player_overlay_info"
/>
...
...
@@ -96,15 +95,13 @@
android:layout=
"@layout/player_overlay_settings"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_alignParentRight=
"true"
/>
android:layout_gravity=
"center_vertical|end"
/>
<androidx.appcompat.widget.ViewStubCompat
android:id=
"@+id/player_hud_right_stub"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentTop=
"true"
android:layout_alignParentEnd=
"true"
android:layout_gravity=
"end"
android:layout=
"@layout/player_hud_right"
/>
<androidx.appcompat.widget.ViewStubCompat
...
...
@@ -112,14 +109,13 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout=
"@layout/player_hud"
android:layout_
alignParentBottom=
"true
"
/>
android:layout_
gravity=
"bottom
"
/>
<ImageView
android:id=
"@+id/hinge_go_left"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_gravity=
"center_vertical"
android:clickable=
"true"
android:focusable=
"true"
android:visibility=
"gone"
...
...
@@ -130,15 +126,13 @@
android:id=
"@+id/hinge_go_right"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_gravity=
"center_vertical|right"
android:clickable=
"true"
android:focusable=
"true"
android:visibility=
"gone"
android:foreground=
"?attr/selectableItemBackgroundBorderless"
app:srcCompat=
"@drawable/ic_arrow_right"
/>
</RelativeLayout>
</FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
...
...
This diff is collapsed.
Click to expand it.
application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
+
2
−
1
View file @
d6c88bc3
...
...
@@ -32,6 +32,7 @@ import android.content.pm.ActivityInfo
import
android.content.res.Configuration
import
android.os.Build
import
android.view.View
import
android.view.ViewGroup
import
android.view.WindowManager
import
android.view.animation.AnimationUtils
import
android.widget.*
...
...
@@ -92,7 +93,7 @@ class VideoPlayerOverlayDelegate (private val player: VideoPlayerActivity) {
var
info
:
TextView
?
=
null
var
subinfo
:
TextView
?
=
null
var
overlayInfo
:
View
?
=
null
lateinit
var
playerUiContainer
:
RelativeLay
ou
t
lateinit
var
playerUiContainer
:
ViewGr
ou
p
lateinit
var
hudBinding
:
PlayerHudBinding
lateinit
var
hudRightBinding
:
PlayerHudRightBinding
...
...
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