Skip to content

Commit

Permalink
Modify intro.
Browse files Browse the repository at this point in the history
Followed some proposals from #63
  • Loading branch information
mikifus committed Feb 19, 2024
1 parent 12a33d3 commit 5f0e281
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
15 changes: 5 additions & 10 deletions app/src/main/java/com/mikifus/padland/Activities/IntroActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,21 @@ class IntroActivity : AppIntro() {
// Just set a title, description, background and image. AppIntro will do the rest.
addSlide(AppIntroFragment.createInstance(getString(R.string.intro_first_title),
getString(R.string.intro_first_desc),
R.drawable.intro_image1,
backgroundColorRes=R.color.intro_first_background))
R.drawable.intro_image1))
addSlide(AppIntroFragment.createInstance(getString(R.string.intro_second_title),
getString(R.string.intro_second_desc),
R.drawable.intro_image2,
backgroundColorRes=R.color.intro_first_background))
R.drawable.intro_image2))
addSlide(AppIntroFragment.createInstance(getString(R.string.intro_third_title),
getString(R.string.intro_third_desc),
R.drawable.intro_image3,
backgroundColorRes=R.color.intro_first_background))
R.drawable.intro_image3))
addSlide(AppIntroFragment.createInstance(getString(R.string.intro_fourth_title),
getString(R.string.intro_fourth_desc),
R.drawable.intro_image4,
backgroundColorRes=R.color.intro_first_background))
R.drawable.intro_image4))
addSlide(
LinkableAppIntroFragment.createInstance(
getString(R.string.intro_fifth_title),
getString(R.string.intro_fifth_desc),
R.drawable.intro_image5,
R.color.intro_fifth_background))
R.mipmap.ic_launcher))

// OPTIONAL METHODS
// Override bar/separator color.
Expand Down
Binary file modified app/src/main/res/drawable/intro_image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/intro_image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/intro_image3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/intro_image4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable/intro_image5.png
Binary file not shown.
10 changes: 5 additions & 5 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Intro -->
<color name="intro_first_background">@android:color/black</color>
<color name="intro_second_background">#ffeea90a</color>
<color name="intro_third_background">#ffb01510</color>
<color name="intro_fourth_background">#ff168731</color>
<color name="intro_fifth_background">#ff166cb3</color>
<!-- <color name="intro_first_background">@android:color/black</color>-->
<!-- <color name="intro_second_background">#ffeea90a</color>-->
<!-- <color name="intro_third_background">#ffb01510</color>-->
<!-- <color name="intro_fourth_background">#ff168731</color>-->
<!-- <color name="intro_fifth_background">#ff166cb3</color>-->
</resources>

0 comments on commit 5f0e281

Please sign in to comment.