Added About section to menu

This commit is contained in:
partisan 2025-05-15 22:23:07 +02:00
parent 1850641fdb
commit 72d4a797ea
8 changed files with 673 additions and 15 deletions

View file

@ -0,0 +1,77 @@
<?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/sourceButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/source_code"
android:layout_marginTop="24dp"
app:cornerRadius="24dp" />
<Button
android:id="@+id/licenseButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/license"
android:layout_marginTop="8dp"
app:cornerRadius="24dp" />
<Button
android:id="@+id/secretButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Secret"
android:layout_marginTop="16dp"
android:visibility="gone"
app:cornerRadius="24dp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/secretRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#CC000000">
<partisan.weforge.xyz.pulse.SecretView
android:id="@+id/secretView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>