/
ap1k
/
MultimediaJavaAndroid
Обзор
Документация
Войти
/
ap1k
/
MultimediaJavaAndroid
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
app/src/main/res/layout/activity_video_player.xml
105 строк
4 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/black"> <TextView android:id="@+id/tvVideoTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/video_title" android:textSize="24sp" android:textStyle="bold" android:textColor="@color/white" android:layout_marginTop="16dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <VideoView android:id="@+id/videoView" android:layout_width="0dp" android:layout_height="0dp" android:layout_marginTop="16dp" android:layout_marginBottom="16dp" app:layout_constraintBottom_toTopOf="@+id/seekBarVideo" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/tvVideoTitle" /> <TextView android:id="@+id/tvVideoCurrentTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0:00" android:textColor="@color/white" android:layout_marginStart="16dp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintBottom_toTopOf="@+id/seekBarVideo" /> <TextView android:id="@+id/tvVideoTotalTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0:00" android:textColor="@color/white" android:layout_marginEnd="16dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintBottom_toTopOf="@+id/seekBarVideo" /> <SeekBar android:id="@+id/seekBarVideo" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" android:layout_marginBottom="16dp" android:progressTint="@color/player_progress" android:thumbTint="@color/player_progress" app:layout_constraintBottom_toTopOf="@+id/linearLayoutVideoControls" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> <LinearLayout android:id="@+id/linearLayoutVideoControls" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center" android:layout_marginBottom="24dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent"> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/fabPlayVideo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="16dp" android:backgroundTint="@color/player_controls" android:src="@android:drawable/ic_media_play" app:tint="@color/white" /> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/fabPauseVideo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="16dp" android:backgroundTint="@color/player_controls" android:src="@android:drawable/ic_media_pause" app:tint="@color/white" /> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/fabStopVideo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:backgroundTint="@color/player_controls" android:src="@android:drawable/ic_media_previous" app:tint="@color/white" /> </LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout>