mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Make UI look nicer
This commit is contained in:
parent
a43bc28f92
commit
97dedd6859
4 changed files with 24 additions and 14 deletions
|
@ -701,6 +701,11 @@ open class ResultFragmentPhone : FullScreenPlayer() {
|
||||||
resultCastItems.isGone = d.actors.isNullOrEmpty()
|
resultCastItems.isGone = d.actors.isNullOrEmpty()
|
||||||
(resultCastItems.adapter as? ActorAdaptor)?.updateList(d.actors ?: emptyList())
|
(resultCastItems.adapter as? ActorAdaptor)?.updateList(d.actors ?: emptyList())
|
||||||
|
|
||||||
|
if (d.contentRatingText == null) {
|
||||||
|
// If there is no rating to display, we don't want an empty gap
|
||||||
|
resultMetaContentRating.width = 0
|
||||||
|
}
|
||||||
|
|
||||||
if (syncModel.addSyncs(d.syncData)) {
|
if (syncModel.addSyncs(d.syncData)) {
|
||||||
syncModel.updateMetaAndUser()
|
syncModel.updateMetaAndUser()
|
||||||
syncModel.updateSynced()
|
syncModel.updateSynced()
|
||||||
|
|
|
@ -818,6 +818,11 @@ class ResultFragmentTv : Fragment() {
|
||||||
(resultCastItems.adapter as? ActorAdaptor)?.updateList(
|
(resultCastItems.adapter as? ActorAdaptor)?.updateList(
|
||||||
d.actors ?: emptyList()
|
d.actors ?: emptyList()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (d.contentRatingText == null) {
|
||||||
|
// If there is no rating to display, we don't want an empty gap
|
||||||
|
resultMetaContentRating.width = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
is Resource.Loading -> {
|
is Resource.Loading -> {
|
||||||
|
|
|
@ -360,10 +360,16 @@
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/result_meta_site"
|
android:id="@+id/result_meta_site"
|
||||||
style="@style/SmallBlackButton"
|
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
style="@style/SmallBlackButton"
|
||||||
tools:text="Gogoanime" />
|
tools:text="Gogoanime" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/result_meta_content_rating"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
style="@style/SmallBlackButton"
|
||||||
|
tools:text="PG-13" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/result_meta_type"
|
android:id="@+id/result_meta_type"
|
||||||
style="@style/ResultInfoText"
|
style="@style/ResultInfoText"
|
||||||
|
@ -388,12 +394,6 @@
|
||||||
android:id="@+id/result_meta_duration"
|
android:id="@+id/result_meta_duration"
|
||||||
style="@style/ResultInfoText"
|
style="@style/ResultInfoText"
|
||||||
tools:text="121min" />
|
tools:text="121min" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/result_meta_content_rating"
|
|
||||||
android:layout_gravity="center_vertical"
|
|
||||||
style="@style/SmallBlackButton"
|
|
||||||
tools:text="PG-13" />
|
|
||||||
</com.lagradost.cloudstream3.widget.FlowLayout>
|
</com.lagradost.cloudstream3.widget.FlowLayout>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -379,10 +379,16 @@ https://developer.android.com/design/ui/tv/samples/jet-fit
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/result_meta_site"
|
android:id="@+id/result_meta_site"
|
||||||
style="@style/SmallWhiteButton"
|
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
style="@style/SmallWhiteButton"
|
||||||
tools:text="Gogoanime" />
|
tools:text="Gogoanime" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/result_meta_content_rating"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
style="@style/SmallWhiteButton"
|
||||||
|
tools:text="PG-13" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/result_meta_type"
|
android:id="@+id/result_meta_type"
|
||||||
style="@style/ResultInfoText"
|
style="@style/ResultInfoText"
|
||||||
|
@ -407,12 +413,6 @@ https://developer.android.com/design/ui/tv/samples/jet-fit
|
||||||
android:id="@+id/result_meta_duration"
|
android:id="@+id/result_meta_duration"
|
||||||
style="@style/ResultInfoText"
|
style="@style/ResultInfoText"
|
||||||
tools:text="121min" />
|
tools:text="121min" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/result_meta_content_rating"
|
|
||||||
android:layout_gravity="center_vertical"
|
|
||||||
style="@style/SmallWhiteButton"
|
|
||||||
tools:text="PG-13" />
|
|
||||||
</com.lagradost.cloudstream3.widget.FlowLayout>
|
</com.lagradost.cloudstream3.widget.FlowLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue