4 экран добавлен и переход на него

This commit is contained in:
Beluga737 committed 2026-12-01 11:04:31 +07:00
1 parent b72863b569
commit 96963b26d4
4 files changed
+119

No files matched your search

+4
View File
@@ -28,6 +28,10 @@
android:name=".Raspisanie"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".Informaition"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
</application>
</manifest>
@@ -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 Informaition : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_informaition)
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()
}
}
}
@@ -29,6 +29,10 @@ class MainActivity : AppCompatActivity() {
startActivity(Intent(this, Raspisanie::class.java))
finish()
}
findViewById<View>(R.id.buttonTips).setOnClickListener {
startActivity(Intent(this, Informaition::class.java))
finish()
}
}
}
@@ -0,0 +1,85 @@
<?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/background"
android:fillViewport="true"
tools:context=".MainActivity">
<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:text="Полезная Информация" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="vertical"
android:background="@color/platine">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginStart="5dp"
android:text="1. Планируй свое время"
android:textColor="@color/text_primary"
android:textSize="15sp"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Составляй список дел на день. Записывай важные задания и сроки их выполнения."
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="vertical"
android:background="@color/platine">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginStart="5dp"
android:text="2. Повторяй изученный материал"
android:textColor="@color/text_primary"
android:textSize="15sp"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Уделяй время повторению пройденных тем. Это поможет лучше усваивать новые знания"/>
<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="На главную"
android:textSize="15sp"/>
<Space
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:minHeight="28dp" />
</LinearLayout>
</ScrollView>