change the jump to next step
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user