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

1
.idea/gradle.xml generated
View File

@@ -79,7 +79,6 @@
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

2
.idea/misc.xml generated
View File

@@ -4,7 +4,7 @@
<asm skipDebug="false" skipFrames="false" skipCode="false" expandFrames="false" />
<groovy codeStyle="LEGACY" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
</project>

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"