change the jump to next step

This commit is contained in:
unknown
2020-10-27 10:57:12 +08:00
parent 19bcc59a44
commit 924aeac847
4 changed files with 9 additions and 6 deletions

View File

@@ -55,8 +55,12 @@ class GuideFragment : MvpFragment<GuideConstract.View, GuidePresenter>(), GuideC
module_guide_page_right.setOnClickListener {
moveToNext()
}
module_guide_tv_jump.setOnClickListener {
closeGuideFragment()
module_guide_tv_next_step.setOnClickListener {
if( (moduleGuideViewPager.currentItem + 1) == adapter!!.itemCount){
closeGuideFragment()
}else{
moveToNext()
}
}
}

View File

@@ -27,14 +27,14 @@
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/module_guide_tv_jump"
android:id="@+id/module_guide_tv_next_step"
android:layout_width="@dimen/dp_159"
android:layout_height="@dimen/dp_64"
android:layout_marginTop="@dimen/dp_18"
android:layout_marginRight="@dimen/dp_55"
android:background="@drawable/module_guide_blue_corner"
android:gravity="center"
android:text="@string/module_guide_skip"
android:text="@string/module_guide_item_next_step"
android:textColor="#FFFFFF"
android:textSize="@dimen/dp_37"
app:layout_constraintRight_toRightOf="parent"