mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
improve the player action buttons
This commit is contained in:
parent
d1eb279563
commit
b799bbefd1
@ -283,7 +283,6 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
|||||||
|
|
||||||
if (SDK_INT < Build.VERSION_CODES.O) {
|
if (SDK_INT < Build.VERSION_CODES.O) {
|
||||||
binding.relPlayerPip.visibility = View.GONE
|
binding.relPlayerPip.visibility = View.GONE
|
||||||
binding.optionsLL.weightSum = 4f
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,95 +146,37 @@
|
|||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal">
|
||||||
android:weightSum="5">
|
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
android:id="@+id/relPlayer_share"
|
android:id="@+id/relPlayer_share"
|
||||||
style="@style/PlayerActionsLayout"
|
style="@style/PlayerActionsText"
|
||||||
android:layout_weight="1">
|
android:text="@string/share"
|
||||||
|
app:drawableTopCompat="@drawable/ic_share" />
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="25dp"
|
|
||||||
android:src="@drawable/ic_share" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/PlayerActionsText"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/share" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/relPlayer_download"
|
android:id="@+id/relPlayer_download"
|
||||||
style="@style/PlayerActionsLayout"
|
style="@style/PlayerActionsText"
|
||||||
android:layout_weight="1">
|
android:text="@string/download"
|
||||||
|
app:drawableTopCompat="@drawable/ic_download" />
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="25dp"
|
|
||||||
android:src="@drawable/ic_download" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/PlayerActionsText"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/download" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/relPlayer_pip"
|
android:id="@+id/relPlayer_pip"
|
||||||
style="@style/PlayerActionsLayout"
|
style="@style/PlayerActionsText"
|
||||||
android:layout_weight="1">
|
android:text="@string/pop_up"
|
||||||
|
app:drawableTopCompat="@drawable/ic_open" />
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="25dp"
|
|
||||||
android:padding="2dp"
|
|
||||||
android:src="@drawable/ic_open" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/PlayerActionsText"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/pop_up" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/relPlayer_background"
|
android:id="@+id/relPlayer_background"
|
||||||
style="@style/PlayerActionsLayout"
|
style="@style/PlayerActionsText"
|
||||||
android:layout_weight="1">
|
android:text="@string/audio"
|
||||||
|
app:drawableTopCompat="@drawable/ic_headphones" />
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="25dp"
|
|
||||||
android:src="@drawable/ic_headphones" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/PlayerActionsText"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/audio" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/relPlayer_save"
|
android:id="@+id/relPlayer_save"
|
||||||
style="@style/PlayerActionsLayout"
|
|
||||||
android:layout_weight="1">
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="25dp"
|
|
||||||
android:src="@drawable/ic_save" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/PlayerActionsText"
|
style="@style/PlayerActionsText"
|
||||||
android:layout_width="wrap_content"
|
android:text="@string/save"
|
||||||
android:layout_height="wrap_content"
|
app:drawableTopCompat="@drawable/ic_save" />
|
||||||
android:text="@string/save" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</com.google.android.material.card.MaterialCardView>
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
@ -94,8 +94,16 @@
|
|||||||
<style name="PlayerActionsText">
|
<style name="PlayerActionsText">
|
||||||
<item name="android:autoSizeTextType" tools:targetApi="o">uniform</item>
|
<item name="android:autoSizeTextType" tools:targetApi="o">uniform</item>
|
||||||
<item name="android:autoSizeMinTextSize" tools:targetApi="o">10sp</item>
|
<item name="android:autoSizeMinTextSize" tools:targetApi="o">10sp</item>
|
||||||
|
<item name="android:textSize">16sp</item>
|
||||||
|
<item name="android:autoSizeMaxTextSize" tools:targetApi="p">16sp</item>
|
||||||
<item name="android:maxLines">1</item>
|
<item name="android:maxLines">1</item>
|
||||||
<item name="android:gravity">bottom</item>
|
<item name="android:gravity">bottom</item>
|
||||||
|
<item name="android:textAlignment">center</item>
|
||||||
|
<item name="android:background">?attr/selectableItemBackgroundBorderless</item>
|
||||||
|
<item name="android:layout_gravity">bottom</item>
|
||||||
|
<item name="android:layout_width">0dp</item>
|
||||||
|
<item name="android:layout_height">wrap_content</item>
|
||||||
|
<item name="android:layout_weight">1</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="PlayerControlBottom">
|
<style name="PlayerControlBottom">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user