mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 14:31:30 +01:00
Fill the Start
tab (1) of the tutorial
Use blinking icons to indicate the swipe direction. Text in the middle still is the same. Remove page title.
This commit is contained in:
parent
909a3d5725
commit
ddf30ece3e
3 changed files with 42 additions and 5 deletions
|
@ -29,5 +29,16 @@ class TutorialFragmentStart(): Fragment(), UIObject {
|
||||||
|
|
||||||
override fun applyTheme() {
|
override fun applyTheme() {
|
||||||
tutorial_start_container.setBackgroundColor(dominantColor)
|
tutorial_start_container.setBackgroundColor(dominantColor)
|
||||||
|
|
||||||
|
// set icons
|
||||||
|
val rightIcon = getString(R.string.fas_angle_double_right)
|
||||||
|
|
||||||
|
tutorial_start_icon_right.text = rightIcon.repeat(3)
|
||||||
|
tutorial_start_icon_right.setTextColor(vibrantColor)
|
||||||
|
tutorial_start_icon_right.blink()
|
||||||
|
|
||||||
|
tutorial_start_icon_right_2.text = rightIcon.repeat(3)
|
||||||
|
tutorial_start_icon_right_2.setTextColor(vibrantColor)
|
||||||
|
tutorial_start_icon_right_2.blink()
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -11,14 +11,38 @@
|
||||||
android:background="?attr/colorPrimary"
|
android:background="?attr/colorPrimary"
|
||||||
tools:context=".tutorial.tab.TutorialFragmentStart">
|
tools:context=".tutorial.tab.TutorialFragmentStart">
|
||||||
|
|
||||||
<TextView
|
<com.finnmglas.launcher.libraries.FontAwesome
|
||||||
android:id="@+id/tutorial_start_title"
|
android:id="@+id/tutorial_start_icon_right_2"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:text="@string/fas_angle_double_right"
|
||||||
android:text="Launcher"
|
android:textSize="64sp"
|
||||||
android:textSize="30sp"
|
app:layout_constraintBottom_toTopOf="@id/tutorial_start_text"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tutorial_start_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="Take a few seconds to learn how to use this Launcher!"
|
||||||
|
android:textSize="18sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<com.finnmglas.launcher.libraries.FontAwesome
|
||||||
|
android:id="@+id/tutorial_start_icon_right"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/fas_angle_double_right"
|
||||||
|
android:textSize="64sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/tutorial_start_text" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -14,6 +14,8 @@
|
||||||
<string name="fas_times" translatable="false"></string> <!-- 'close' -->
|
<string name="fas_times" translatable="false"></string> <!-- 'close' -->
|
||||||
<string name="fas_three_dots" translatable="false"></string> <!-- 'ellipsis-v' -->
|
<string name="fas_three_dots" translatable="false"></string> <!-- 'ellipsis-v' -->
|
||||||
|
|
||||||
|
<string name="fas_angle_double_right" translatable="false"></string>
|
||||||
|
|
||||||
<!-- icons that can be used with type="brands" -->
|
<!-- icons that can be used with type="brands" -->
|
||||||
<string name="fab_apple" translatable="false"></string>
|
<string name="fab_apple" translatable="false"></string>
|
||||||
<string name="fab_instagram" translatable="false"></string>
|
<string name="fab_instagram" translatable="false"></string>
|
||||||
|
|
Loading…
Add table
Reference in a new issue