Dev videoplayer uat enhancement (#7034)
* TP-33677 | quiz result lottie change * TP-00000 | video player uat enhancement
This commit is contained in:
committed by
GitHub Enterprise
parent
80a124e7ee
commit
531d367ff9
@@ -36,6 +36,7 @@ import com.navi.common.utils.Constants.HTTP
|
||||
import com.navi.common.utils.Constants.REWARDS_ANNOUNCEMENT_SCREEN
|
||||
import com.navi.common.utils.toCtaData
|
||||
import com.navi.design.utils.dpToPxInInt
|
||||
import com.navi.design.utils.ifMeasured
|
||||
import com.navi.design.utils.parseColorSafe
|
||||
import com.navi.design.utils.spannedText
|
||||
import com.navi.naviwidgets.extensions.setCornerRadius
|
||||
@@ -177,7 +178,7 @@ class RewardsAnnouncementFragment :
|
||||
it.parameters?.put(SCREEN_NAME, sourceScreenName.orEmpty())
|
||||
NaviTrackEvent.trackEventOnClickStream(it.eventName.orEmpty(), it.parameters)
|
||||
}
|
||||
binding.clContent.post {
|
||||
binding.clContent.ifMeasured {
|
||||
binding.clContent.layoutParams.height =
|
||||
(binding.clContent.width / (rewardsAnnouncementData?.aspectRatio
|
||||
?: ASPECT_RATIO)).roundToInt()
|
||||
@@ -188,7 +189,7 @@ class RewardsAnnouncementFragment :
|
||||
|
||||
private fun applyMarginToIcon(extraMargin: Int) {
|
||||
binding.apply {
|
||||
ivIcon.post {
|
||||
ivIcon.ifMeasured {
|
||||
val topMargin = ivIcon.height / 2 + dpToPxInInt(extraMargin)
|
||||
val layoutParams = tvTitle.layoutParams as ConstraintLayout.LayoutParams
|
||||
layoutParams.topMargin = topMargin
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
android:id="@+id/clContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_30"
|
||||
android:layout_marginEnd="@dimen/dp_30"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -46,14 +46,13 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/action_button"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
style="@style/ButtonFontStyleOrange"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_60"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_gravity="start"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/button_with_state_8dp_radius"
|
||||
android:clipToPadding="false"
|
||||
android:fontFamily="@font/tt_regular"
|
||||
android:fontFamily="@font/tt_semi_bold"
|
||||
android:gravity="center"
|
||||
android:padding="0dp"
|
||||
android:textAllCaps="false"
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
android:id="@+id/exo_open_full_screen_btn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:src="@drawable/full_screen_button"
|
||||
android:paddingHorizontal="@dimen/dp_14"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -93,7 +93,6 @@
|
||||
android:id="@+id/rootLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:visibility="gone"
|
||||
android:clipToPadding="false"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -152,8 +151,9 @@
|
||||
android:id="@+id/full_screen_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
android:layout_marginBottom="@dimen/dp_14"
|
||||
android:paddingEnd="@dimen/dp_16"
|
||||
android:paddingBottom="@dimen/dp_14"
|
||||
android:paddingStart="@dimen/dp_18"
|
||||
android:gravity="end"
|
||||
android:src="@drawable/full_screen_button"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user