сделан 6 экран

This commit is contained in:
Beluga737 committed 2026-12-03 09:01:34 +07:00
1 parent d3d10e455e
commit c80966c192
5 files changed
+135

No files matched your search

+4
View File
@@ -36,6 +36,10 @@
android:name=".infoProgram"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".Settings"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
</application>
</manifest>
@@ -38,5 +38,9 @@ class MainActivity : AppCompatActivity() {
finish()
}
findViewById<View>(R.id.buttonSettings).setOnClickListener {
startActivity(Intent(this, Settings::class.java))
finish()
}
}
}
@@ -0,0 +1,26 @@
package com.example.helponizer
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
class Settings : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_settings)
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
insets
}
findViewById<View>(R.id.buttonOnMain).setOnClickListener {
startActivity(Intent(this, MainActivity::class.java))
finish()
}
}
}
@@ -67,6 +67,15 @@
android:text="@string/home_about"
app:icon="@drawable/ic_info" />
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonSettings"
style="@style/PrimaryButton"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="16dp"
android:text="Настройки"
app:icon="@drawable/ic_info" />
<Space
android:layout_width="match_parent"
android:layout_height="0dp"
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/platine"
android:fillViewport="true"
tools:context=".infoProgram">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="24dp"
android:paddingTop="32dp"
android:paddingEnd="24dp"
android:paddingBottom="24dp">
<TextView
style="@style/ScreenTitle"
android:layout_marginTop="16dp"
android:text="Настройки"
android:gravity="center"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_tips_card"
android:orientation="vertical">
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonTheme"
style="@style/PrimaryButton"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="16dp"
android:text="Сменить палитру"
android:textSize="15sp"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonSound"
style="@style/PrimaryButton"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="16dp"
android:text="Воспроизвести звук"
android:textSize="15sp"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonTextUp"
style="@style/PrimaryButton"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="16dp"
android:text="Увеличить текст"
android:textSize="15sp"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonTextDown"
style="@style/PrimaryButton"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="16dp"
android:text="Уменьшить текст"
android:textSize="15sp"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonNotification"
style="@style/PrimaryButton"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:text="Включить уведомление"
android:textSize="15sp"/>
</LinearLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonOnMain"
style="@style/PrimaryButton"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginTop="16dp"
android:text="@string/button_back_to_main"
android:textSize="15sp"/>
<Space
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:minHeight="28dp" />
</LinearLayout>
</ScrollView>