点击事件
This commit is contained in:
parent
4a5fcfa0bb
commit
7436000c7f
|
|
@ -52,7 +52,7 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
|
|||
|
||||
override fun ViewBinding.initViews() {
|
||||
with(binding) {
|
||||
setOnClickBatch(ivGotoDailySign, llTaskBenefit, llTaskWatchVideo, llTaskGame, llTaskZerobuy) {
|
||||
setOnClickBatch(ivGotoDailySign, llTaskBenefit, llTaskWatchVideo, llTaskGame, llTaskZerobuy, tvWatchVideo, tvWithdraw) {
|
||||
when(this) {
|
||||
ivGotoDailySign->{
|
||||
DailySignDialog(context).build().show()
|
||||
|
|
@ -73,6 +73,14 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
|
|||
llTaskZerobuy->{
|
||||
Router.ZeroBuy.startActivity(requireActivity())
|
||||
}
|
||||
|
||||
tvWatchVideo->{
|
||||
WatchVideoDialog(requireContext()).show()
|
||||
}
|
||||
|
||||
tvWithdraw->{
|
||||
Router.Withdraw.startActivity(requireActivity())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@
|
|||
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/tv_watch_video"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
|
|
@ -140,6 +141,7 @@
|
|||
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/tv_withdraw"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
|
|
|
|||
Loading…
Reference in New Issue