New Welcome screen

This commit is contained in:
partisan 2025-05-11 11:20:16 +02:00
parent 794fe46b45
commit cba93c6069
7 changed files with 221 additions and 18 deletions

View file

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/rootLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="32dp">
<LinearLayout
android:id="@+id/contentWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<ImageView
android:id="@+id/appIcon"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_marginBottom="8dp"
android:contentDescription="@string/app_name"
android:src="@mipmap/ic_launcher" />
<TextView
android:id="@+id/appName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:textSize="20sp"
android:textStyle="bold"
android:layout_marginTop="8dp" />
<TextView
android:id="@+id/appDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/description"
android:textAlignment="center"
android:textSize="14sp"
android:layout_marginTop="8dp" />
<Button
android:id="@+id/activateButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/activate"
android:layout_marginTop="32dp"
app:cornerRadius="24dp" />
<TextView
android:id="@+id/activateDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/activate_description"
android:textAlignment="center"
android:textSize="14sp"
android:layout_marginTop="16dp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<nl.dionsegijn.konfetti.xml.KonfettiView
android:id="@+id/konfettiView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</FrameLayout>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Pulse</string>
<string name="description">The app will try to redirect outgoing calls to Signal/Telegram/Threema/WhatsApp if available. For work it requires many permissions. Click on the toggle and grant permissions until it turns ON.</string>
<string name="description">App will try to redirect outgoing calls to E2EE apps if available.</string>
<string name="popup">Redirecting to %1$s</string>
<string name="destination_signal">Signal</string>
<string name="destination_telegram">Telegram</string>
@ -10,4 +10,6 @@
<string name="redirection_delay_description">The delay before a call will be redirected.</string>
<string name="popup_position">Popup position</string>
<string name="fallback">Fallback</string>
<string name="activate_description">To start, grant the required permissions and tap the Activate button.</string>
<string name="activate">Activate</string>
</resources>