/
ap1k
/
MultimediaJavaAndroid
Обзор
Документация
Войти
/
ap1k
/
MultimediaJavaAndroid
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
app/src/main/res/layout/activity_photo_gallery.xml
83 строки
3 KB
Roman
Full proj
11 май 2025, 13:58
11 май 2025, 13:58
4ffd117
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/gallery_background" android:padding="16dp"> <TextView android:id="@+id/tvPhotoTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/photo_title" android:textSize="24sp" android:textStyle="bold" android:textColor="@color/player_text" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <androidx.cardview.widget.CardView android:id="@+id/cardViewPhoto" android:layout_width="0dp" android:layout_height="0dp" android:layout_marginTop="24dp" android:layout_marginBottom="24dp" app:cardCornerRadius="8dp" app:cardElevation="4dp" app:layout_constraintBottom_toTopOf="@+id/tvPhotoCounter" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/tvPhotoTitle"> <ImageView android:id="@+id/ivPhotoDisplay" android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="fitCenter" android:contentDescription="@string/photo_description" /> </androidx.cardview.widget.CardView> <TextView android:id="@+id/tvPhotoCounter" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/photo_count" android:textSize="16sp" android:textColor="@color/player_text" app:layout_constraintBottom_toTopOf="@+id/linearLayoutButtons" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" android:layout_marginBottom="16dp" /> <LinearLayout android:id="@+id/linearLayoutButtons" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent"> <Button android:id="@+id/btnPreviousPhoto" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/photo_prev" android:backgroundTint="@color/gallery_button" android:layout_marginEnd="16dp" /> <Button android:id="@+id/btnNextPhoto" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/photo_next" android:backgroundTint="@color/gallery_button" /> </LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout>