mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
remove black bars
This commit is contained in:
parent
17cf24a5aa
commit
423acaa74b
@ -695,8 +695,7 @@ class PlayerFragment : Fragment() {
|
|||||||
// Set new width/height of view
|
// Set new width/height of view
|
||||||
// height or width must be cast to float as int/int will give 0
|
// height or width must be cast to float as int/int will give 0
|
||||||
|
|
||||||
val currentWidth = binding.mainContainer.height
|
// Redraw the player container with the new layout height
|
||||||
// Redraw myView
|
|
||||||
(binding.mainContainer.layoutParams as ConstraintLayout.LayoutParams).apply {
|
(binding.mainContainer.layoutParams as ConstraintLayout.LayoutParams).apply {
|
||||||
matchConstraintPercentHeight = (
|
matchConstraintPercentHeight = (
|
||||||
videoSize.height / videoSize.width
|
videoSize.height / videoSize.width
|
||||||
|
@ -131,7 +131,6 @@
|
|||||||
android:layout_height="@dimen/exo_styled_bottom_bar_height"
|
android:layout_height="@dimen/exo_styled_bottom_bar_height"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:layout_marginTop="@dimen/exo_styled_bottom_bar_margin_top"
|
android:layout_marginTop="@dimen/exo_styled_bottom_bar_margin_top"
|
||||||
android:background="@color/exo_bottom_bar_background"
|
|
||||||
android:layoutDirection="ltr">
|
android:layoutDirection="ltr">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -199,7 +198,6 @@
|
|||||||
android:id="@id/exo_progress"
|
android:id="@id/exo_progress"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="15dp"
|
android:layout_height="15dp"
|
||||||
android:background="@color/exo_bottom_bar_background"
|
|
||||||
app:bar_height="2dp"
|
app:bar_height="2dp"
|
||||||
app:played_color="?attr/colorOnSecondary"
|
app:played_color="?attr/colorOnSecondary"
|
||||||
app:scrubber_color="?attr/colorOnPrimary"
|
app:scrubber_color="?attr/colorOnPrimary"
|
||||||
@ -234,15 +232,15 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@id/exo_rew_with_amount"
|
android:id="@id/exo_rew_with_amount"
|
||||||
style="@style/ExoStyledControls.Button.Center.RewWithAmount"
|
style="@style/ExoStyledControls.Button.Center.RewWithAmount"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_gravity="center"
|
||||||
android:layout_gravity="center" />
|
android:layout_marginLeft="20dp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -252,8 +250,8 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user