|
@@ -1,9 +1,10 @@
|
|
|
package com.wdkl.app.ncs.callingbed.fragment
|
|
|
|
|
|
-import android.app.Activity
|
|
|
-import android.os.Bundle
|
|
|
import android.util.Log
|
|
|
import android.view.View
|
|
|
+import android.view.animation.Animation
|
|
|
+import android.view.animation.AnimationSet
|
|
|
+import android.view.animation.TranslateAnimation
|
|
|
import androidx.recyclerview.widget.GridLayoutManager
|
|
|
import com.alibaba.android.vlayout.DelegateAdapter
|
|
|
import com.alibaba.android.vlayout.VirtualLayoutManager
|
|
@@ -17,7 +18,6 @@ import com.wdkl.app.ncs.callingbed.adapter.EventsMenuapter
|
|
|
import com.wdkl.app.ncs.callingbed.databinding.MainCallRDialogBinding
|
|
|
import com.wdkl.app.ncs.callingbed.dialog.LoadingDialogHelper
|
|
|
import com.wdkl.app.ncs.callingbed.dialog.ReinforcementsDialogHelper
|
|
|
-import com.wdkl.app.ncs.callingbed.helper.SOSHelper
|
|
|
import com.wdkl.app.ncs.callingbed.helper.SoundPoolManager
|
|
|
import com.wdkl.app.ncs.callingbed.helper.SpeechUtil
|
|
|
import com.wdkl.app.ncs.callingbed.launch.CallingbedLaunch
|
|
@@ -91,6 +91,21 @@ class CallRecordsFragment : BaseFragment<BedCallRecordsFragmentPresenter, MainCa
|
|
|
main_call_r_l_rv_2.layoutManager = virtualLayoutManager
|
|
|
main_call_r_l_rv_2.adapter = delegateAdapter
|
|
|
|
|
|
+ val animationSet = AnimationSet(true)
|
|
|
+ val translateAnimation = TranslateAnimation(
|
|
|
+ //X轴初始位置
|
|
|
+ Animation.RELATIVE_TO_SELF, 1.0f,
|
|
|
+ //X轴移动的结束位置
|
|
|
+ Animation.RELATIVE_TO_SELF, 0.0f,
|
|
|
+ //y轴开始位置
|
|
|
+ Animation.RELATIVE_TO_SELF, 0.0f,
|
|
|
+ //y轴移动后的结束位置
|
|
|
+ Animation.RELATIVE_TO_SELF, 0.0f
|
|
|
+ )
|
|
|
+ translateAnimation.duration = 800
|
|
|
+ animationSet.fillAfter = true
|
|
|
+ animationSet.addAnimation(translateAnimation)
|
|
|
+ ll_call_records.startAnimation(animationSet)
|
|
|
}
|
|
|
|
|
|
override fun onResume() {
|