fixed some XML layout issues in player.xml

(should fix the seekbar preview alignment on the screen)
This commit is contained in:
polymorphicshade 2022-07-11 13:18:47 -06:00
parent 590d1f5ac9
commit c413299a40

View file

@ -240,17 +240,11 @@
android:id="@+id/secondaryControls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:gravity="top"
android:visibility="invisible"
tools:ignore="RtlHardcoded"
tools:visibility="visible">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/resizeTextView"
android:layout_width="wrap_content"
@ -289,86 +283,78 @@
</FrameLayout>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right">
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/playWithKodi"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_weight="1"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/play_with_kodi_title"
android:focusable="true"
android:padding="@dimen/player_main_buttons_padding"
android:scaleType="center"
android:scaleType="fitXY"
app:srcCompat="@drawable/ic_cast"
app:tint="@color/white"
tools:ignore="RtlHardcoded" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/openInBrowser"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_weight="1"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/open_in_browser"
android:focusable="true"
android:padding="@dimen/player_main_buttons_padding"
android:scaleType="center"
android:scaleType="fitXY"
app:srcCompat="@drawable/ic_language"
app:tint="@color/white"
tools:ignore="RtlHardcoded" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/share"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_weight="1"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/share"
android:focusable="true"
android:padding="@dimen/player_main_buttons_padding"
android:scaleType="center"
android:scaleType="fitXY"
app:srcCompat="@drawable/ic_share"
app:tint="@color/white"
tools:ignore="RtlHardcoded" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/switchMute"
android:layout_width="0dp"
android:layout_height="35dp"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="37dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/mute"
android:focusable="true"
android:padding="@dimen/player_main_buttons_padding"
android:scaleType="center"
android:scaleType="fitXY"
app:srcCompat="@drawable/ic_volume_off"
app:tint="@color/white"
tools:ignore="RtlHardcoded" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/switchSponsorBlocking"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_weight="1"
android:background="?attr/selectableItemBackground"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/sponsor_block_toggle_skipping"
android:focusable="true"
android:padding="@dimen/player_main_buttons_padding"
android:scaleType="center"
app:srcCompat="@drawable/ic_sponsor_block_enable"
app:tint="@color/white"
app:srcCompat="@drawable/ic_sponsor_block_disable"
tools:ignore="RtlHardcoded" />
<androidx.appcompat.widget.AppCompatImageButton
@ -434,8 +420,6 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/bottomControls"
android:layout_width="match_parent"
@ -458,6 +442,7 @@
tools:ignore="HardcodedText"
tools:text="1:06:29" />
<org.schabi.newpipe.views.FocusAwareSeekBar
android:id="@+id/playbackSeekBar"
style="@style/Widget.AppCompat.SeekBar"
@ -764,6 +749,7 @@
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
<View