2021-01-12 17:16:37 +01:00
|
|
|
<?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"
|
2021-01-25 00:02:03 +01:00
|
|
|
android:foregroundTint="#000000">
|
2021-01-12 17:16:37 +01:00
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/recyclerView"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:itemCount="5"
|
|
|
|
tools:listitem="@layout/item_carousel" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tv_caption"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:ellipsize="marquee"
|
2021-01-25 00:02:03 +01:00
|
|
|
android:text="@string/no_media_description"
|
2021-01-12 17:16:37 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/indicator"
|
|
|
|
app:layout_goneMarginBottom="8dp"
|
|
|
|
tools:text="@tools:sample/lorem[5]" />
|
|
|
|
|
2021-01-25 00:02:03 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/editMediaDescriptionLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="#4D000000"
|
2021-04-18 20:23:57 +02:00
|
|
|
android:visibility="gone"
|
2021-01-25 00:02:03 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/indicator"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-04-18 20:23:57 +02:00
|
|
|
app:layout_goneMarginBottom="8dp"
|
|
|
|
tools:visibility="visible">
|
2021-01-25 00:02:03 +01:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/editTextMediaDescription"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ems="10"
|
|
|
|
android:gravity="start|top"
|
|
|
|
android:hint="@string/no_media_description"
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
android:inputType="textMultiLine"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/imageDescriptionButton"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/imageDescriptionButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/save_image_description"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/editTextMediaDescription"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/check_circle_24" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
2021-01-12 17:16:37 +01:00
|
|
|
<me.relex.circleindicator.CircleIndicator2
|
|
|
|
android:id="@+id/indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/recyclerView"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
2021-01-25 00:02:03 +01:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/btn_previous"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:insetLeft="0dp"
|
|
|
|
android:insetTop="0dp"
|
|
|
|
android:insetRight="0dp"
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
android:padding="0dp"
|
|
|
|
app:backgroundTint="#22000000"
|
|
|
|
app:cornerRadius="48dp"
|
|
|
|
app:icon="@drawable/ic_chevron_left_black_24dp"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:iconSize="48dp"
|
|
|
|
app:iconTint="@color/white"
|
|
|
|
app:rippleColor="@color/white"
|
2021-01-12 17:16:37 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/recyclerView"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-01-25 00:02:03 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/recyclerView"/>
|
2021-01-12 17:16:37 +01:00
|
|
|
|
2021-01-25 00:02:03 +01:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/btn_next"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:insetLeft="0dp"
|
|
|
|
android:insetTop="0dp"
|
|
|
|
android:insetRight="0dp"
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
android:padding="0dp"
|
|
|
|
app:backgroundTint="#22000000"
|
|
|
|
app:cornerRadius="48dp"
|
|
|
|
app:icon="@drawable/ic_chevron_right_black_24dp"
|
|
|
|
app:iconGravity="textEnd"
|
|
|
|
app:iconSize="48dp"
|
|
|
|
app:iconTint="@color/white"
|
|
|
|
app:rippleColor="@color/white"
|
2021-01-12 17:16:37 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/recyclerView"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-01-25 00:02:03 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/recyclerView"/>
|
2021-01-12 17:16:37 +01:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/switchToGridButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-01-14 11:51:15 +01:00
|
|
|
android:contentDescription="@string/switch_to_grid"
|
2021-01-12 17:16:37 +01:00
|
|
|
android:src="@drawable/grid_on_black_24dp"
|
2021-05-19 11:10:42 +02:00
|
|
|
app:tint="@color/white"
|
2021-01-12 17:16:37 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/indicator"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/indicator"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/indicator" />
|
|
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/switchToCarouselButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-01-14 11:51:15 +01:00
|
|
|
android:contentDescription="@string/switch_to_carousel"
|
2021-01-12 17:16:37 +01:00
|
|
|
android:src="@drawable/view_carousel_black_24dp"
|
2021-05-19 11:10:42 +02:00
|
|
|
app:tint="@color/white"
|
2021-01-25 00:02:03 +01:00
|
|
|
android:visibility="gone"
|
2021-01-12 17:16:37 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/indicator"
|
2021-01-25 00:02:03 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/indicator"
|
|
|
|
tools:visibility="visible" />
|
2021-01-12 17:16:37 +01:00
|
|
|
|
2022-06-18 22:21:19 +02:00
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="visible"
|
|
|
|
tools:progress="30"
|
|
|
|
android:id="@+id/encodeProgress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="64dp"
|
|
|
|
android:layout_marginEnd="24dp"
|
|
|
|
android:indeterminate="false"
|
|
|
|
android:max="100"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/encodeInfoText"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:drawableStartCompat="@drawable/ic_heart"
|
|
|
|
android:drawablePadding="6dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/encodeProgress"
|
|
|
|
tools:text="Encoding..." />
|
|
|
|
|
|
|
|
|
2021-01-12 17:16:37 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|