Task页面的跳转
This commit is contained in:
parent
366789c16a
commit
4e7234f7ff
|
|
@ -11,10 +11,12 @@ import com.ama.core.architecture.appBase.AppViewsFragment
|
|||
import com.ama.core.architecture.appBase.OnFragmentBackgroundListener
|
||||
import com.ama.core.architecture.util.setOnClickBatch
|
||||
import com.ama.core.architecture.util.setStatusBarDarkFont
|
||||
import com.gamedog.vididin.main.WatchVideoDialog
|
||||
import com.gamedog.vididin.main.fragments.task.DailySignDialog
|
||||
import com.gamedog.vididin.main.fragments.task.TaskBean
|
||||
import com.gamedog.vididin.main.interfaces.OnTabClickAgainListener
|
||||
import com.gamedog.vididin.manager.TaskManager
|
||||
import com.gamedog.vididin.router.Router
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlin.getValue
|
||||
|
|
@ -49,11 +51,27 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
|
|||
|
||||
override fun ViewBinding.initViews() {
|
||||
with(binding) {
|
||||
setOnClickBatch(ivGotoDailySign) {
|
||||
setOnClickBatch(ivGotoDailySign, llTaskBenefit, llTaskWatchVideo, llTaskGame, llTaskZerobuy) {
|
||||
when(this) {
|
||||
ivGotoDailySign->{
|
||||
DailySignDialog(context).build().show()
|
||||
}
|
||||
|
||||
llTaskBenefit->{
|
||||
Router.Benefit.startActivity(requireActivity())
|
||||
}
|
||||
|
||||
llTaskWatchVideo->{
|
||||
WatchVideoDialog(requireContext()).show()
|
||||
}
|
||||
|
||||
llTaskGame->{
|
||||
|
||||
}
|
||||
|
||||
llTaskZerobuy->{
|
||||
Router.Benefit.startActivity(requireActivity())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@
|
|||
android:layout_marginTop="10dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_task_benefit"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
|
|
@ -217,6 +218,7 @@
|
|||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_task_watch_video"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
|
|
@ -250,6 +252,7 @@
|
|||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_task_game"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
|
|
@ -284,6 +287,7 @@
|
|||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_task_zerobuy"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
|
|
|
|||
Loading…
Reference in New Issue