feat: Добавить диалоговое окно "О приложении"

Реализует новый пункт меню "О приложении", который открывает диалоговое окно с информацией о программе.

- В `main_menu.xml` добавлен пункт "About".
- Создан макет `dialog_about.xml` для отображения информации.
- В `MainActivity` добавлена логика для показа диалога, включая динамическое получение версии приложения из `PackageInfo`.
- В `strings.xml` (для en и ru локалей) добавлены строки, содержащие описание, имя создателя и формат версии.
This commit is contained in:
2026-01-17 02:57:26 +03:00
parent 924d445c45
commit 6b65ec1bc4
5 changed files with 85 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp"
android:gravity="center_horizontal">
<ImageView
android:id="@+id/app_icon"
android:layout_width="72dp"
android:layout_height="72dp"
android:src="@mipmap/ic_launcher_round"
android:contentDescription="@string/app_name" />
<TextView
android:id="@+id/app_name_version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:textAppearance="?attr/textAppearanceTitleLarge"
tools:text="VK Chat Manager v1.0" />
<TextView
android:id="@+id/app_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:gravity="center"
android:textAppearance="?attr/textAppearanceBodyMedium" />
<TextView
android:id="@+id/app_creator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:textAppearance="?attr/textAppearanceBodySmall" />
</LinearLayout>