Загрузка данных
<?xml version="1.0" encoding="utf-8"?>
<!--
Я добавил ScrollView, чтобы на маленьких экранах все влезло.
Также я использую Material-компоненты для красоты.
Не забудь, что для Material-кнопок нужен стиль, я его прописал.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F5F5F5"> <!-- Светло-серый фон для всего экрана -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp">
<!-- ЗАГОЛОВОК ПРИЛОЖЕНИЯ -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Моё Приложение"
android:textSize="28sp"
android:textStyle="bold"
android:textColor="#333333"
android:gravity="center"
android:layout_marginBottom="24dp" />
<!-- БЛОК 1: ВКЛАДКА "ГЛАВНАЯ" (Имитация первой вкладки) -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Вкладка 1: Главная"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="#2196F3"
android:layout_marginBottom="12dp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="12dp"
app:cardElevation="4dp"
android:layout_marginBottom="24dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Привет, студент!"
android:textSize="18sp"
android:textColor="#000000"
android:layout_marginBottom="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Это домашняя страница. Здесь мы просто показываем контент."
android:textColor="#666666"
android:layout_marginBottom="16dp"/>
<!-- Красивая кнопка (Material) -->
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_main_action"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Нажми меня"
android:backgroundTint="#2196F3"
app:cornerRadius="8dp"/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<!-- БЛОК 2: ВКЛАДКА "НАСТРОЙКИ" (Имитация второй вкладки) -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Вкладка 2: Настройки"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="#4CAF50"
android:layout_marginBottom="12dp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="12dp"
app:cardElevation="4dp"
android:layout_marginBottom="24dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Введите ваше имя:"
android:textSize="16sp"
android:layout_marginBottom="8dp"/>
<!-- Поле ввода -->
<EditText
android:id="@+id/et_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Например: Иван"
android:padding="12dp"
android:background="#FFFFFF"
android:layout_marginBottom="16dp"
android:importantForAutofill="no"
android:inputType="textPersonName" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Выберите тему:"
android:textSize="16sp"
android:layout_marginBottom="8dp"/>
<!-- Радио-кнопки для выбора -->
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rb_light"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Светлая"
android:checked="true"
android:layout_marginEnd="16dp"/>
<RadioButton
android:id="@+id/rb_dark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Тёмная" />
</RadioGroup>
<!-- Кнопка сохранения -->
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_save_settings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Сохранить настройки"
android:backgroundTint="#4CAF50"
app:cornerRadius="8dp"
android:layout_marginTop="16dp"/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
</ScrollView>