barrie
This commit is contained in:
parent
1424f72256
commit
a452f7de32
|
|
@ -2,8 +2,6 @@ package com.gamedog.vididin.main.fragments.home.fragment
|
||||||
|
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.text.method.MovementMethod
|
|
||||||
import android.text.method.ScrollingMovementMethod
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
|
@ -278,7 +276,7 @@ class HomeItemFragment : AppViewsEmptyViewModelFragment<ViewBinding>() {
|
||||||
with (binding?.playIcon!!) {
|
with (binding?.playIcon!!) {
|
||||||
val animationSet = AnimationSet(true)
|
val animationSet = AnimationSet(true)
|
||||||
animationSet.duration = 250
|
animationSet.duration = 250
|
||||||
val alphaAnimation = AlphaAnimation(1.0f, 0.5f)
|
val alphaAnimation = AlphaAnimation(0.8f, 0.3f)
|
||||||
val scaleAnimation = ScaleAnimation(
|
val scaleAnimation = ScaleAnimation(
|
||||||
1.0f, 0.5f,
|
1.0f, 0.5f,
|
||||||
1.0f, 0.5f,
|
1.0f, 0.5f,
|
||||||
|
|
@ -310,7 +308,7 @@ class HomeItemFragment : AppViewsEmptyViewModelFragment<ViewBinding>() {
|
||||||
|
|
||||||
val animationSet = AnimationSet(true)
|
val animationSet = AnimationSet(true)
|
||||||
animationSet.duration = 250
|
animationSet.duration = 250
|
||||||
val alphaAnimation = AlphaAnimation(0.5f, 1.0f)
|
val alphaAnimation = AlphaAnimation(0.3f, 0.8f)
|
||||||
val scaleAnimation = ScaleAnimation(
|
val scaleAnimation = ScaleAnimation(
|
||||||
0.5f, 1.0f,
|
0.5f, 1.0f,
|
||||||
0.5f, 1.0f,
|
0.5f, 1.0f,
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,13 @@
|
||||||
app:layout_constraintBottom_toTopOf="@id/magic_indicator"
|
app:layout_constraintBottom_toTopOf="@id/magic_indicator"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.Barrier
|
||||||
|
android:id="@+id/barrier_bottom"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:barrierDirection="top"
|
||||||
|
app:constraint_referenced_ids="magic_indicator" />
|
||||||
|
|
||||||
<net.lucode.hackware.magicindicator.MagicIndicator
|
<net.lucode.hackware.magicindicator.MagicIndicator
|
||||||
android:id="@+id/magic_indicator"
|
android:id="@+id/magic_indicator"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -26,4 +33,6 @@
|
||||||
android:paddingTop="30dp"
|
android:paddingTop="30dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent" />
|
app:layout_constraintBottom_toBottomOf="parent" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue