|
@ -211,7 +211,7 @@ |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:padding="8dp" |
|
|
android:padding="8dp" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
app:layout_constraintBottom_toTopOf="@id/caption_toggle" |
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/buttons_barrier" |
|
|
app:layout_constraintEnd_toStartOf="@id/comments_count" |
|
|
app:layout_constraintEnd_toStartOf="@id/comments_count" |
|
|
app:layout_constraintHorizontal_bias="0" |
|
|
app:layout_constraintHorizontal_bias="0" |
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
app:layout_constraintStart_toStartOf="parent" |
|
@ -225,7 +225,7 @@ |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:padding="8dp" |
|
|
android:padding="8dp" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
app:layout_constraintBottom_toTopOf="@id/caption_toggle" |
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/buttons_barrier" |
|
|
app:layout_constraintEnd_toStartOf="@id/views_count" |
|
|
app:layout_constraintEnd_toStartOf="@id/views_count" |
|
|
app:layout_constraintHorizontal_bias="0" |
|
|
app:layout_constraintHorizontal_bias="0" |
|
|
app:layout_constraintStart_toEndOf="@id/likes_count" |
|
|
app:layout_constraintStart_toEndOf="@id/likes_count" |
|
@ -239,131 +239,149 @@ |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:padding="8dp" |
|
|
android:padding="8dp" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
app:layout_constraintBottom_toTopOf="@id/caption_toggle" |
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/buttons_barrier" |
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
app:layout_constraintStart_toEndOf="@id/comments_count" |
|
|
app:layout_constraintStart_toEndOf="@id/comments_count" |
|
|
app:layout_constraintTop_toTopOf="@id/bottom_bg_barrier" |
|
|
app:layout_constraintTop_toTopOf="@id/bottom_bg_barrier" |
|
|
tools:text="9999999999 views" |
|
|
tools:text="9999999999 views" |
|
|
tools:visibility="visible" /> |
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier |
|
|
|
|
|
android:id="@+id/buttons_barrier" |
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
app:barrierDirection="bottom" |
|
|
|
|
|
app:constraint_referenced_ids="likes_count,comments_count,views_count" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--android:text="@string/caption"--> |
|
|
|
|
|
<!--app:iconGravity="top"--> |
|
|
|
|
|
<!--android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white"--> |
|
|
<com.google.android.material.button.MaterialButton |
|
|
<com.google.android.material.button.MaterialButton |
|
|
android:id="@+id/caption_toggle" |
|
|
android:id="@+id/caption_toggle" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
android:layout_width="0dp" |
|
|
android:layout_width="0dp" |
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:text="@string/caption" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
|
|
|
android:layout_height="48dp" |
|
|
android:visibility="visible" |
|
|
android:visibility="visible" |
|
|
app:icon="@drawable/ic_notes_24" |
|
|
app:icon="@drawable/ic_notes_24" |
|
|
app:iconGravity="top" |
|
|
|
|
|
app:iconSize="16dp" |
|
|
|
|
|
|
|
|
app:iconGravity="textStart" |
|
|
|
|
|
app:iconPadding="0dp" |
|
|
|
|
|
app:iconSize="24dp" |
|
|
app:iconTint="@color/white" |
|
|
app:iconTint="@color/white" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintEnd_toStartOf="@id/like" |
|
|
app:layout_constraintEnd_toStartOf="@id/like" |
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
app:layout_constraintTop_toBottomOf="@id/likes_count" |
|
|
|
|
|
app:layout_constraintVertical_bias="1" |
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/buttons_barrier" |
|
|
app:rippleColor="@color/grey_300" |
|
|
app:rippleColor="@color/grey_300" |
|
|
tools:visibility="visible" /> |
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--android:text="@string/like_without_count" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
app:iconGravity="top"--> |
|
|
<com.google.android.material.button.MaterialButton |
|
|
<com.google.android.material.button.MaterialButton |
|
|
android:id="@+id/like" |
|
|
android:id="@+id/like" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
android:layout_width="0dp" |
|
|
android:layout_width="0dp" |
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:text="@string/like_without_count" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
|
|
|
android:layout_height="48dp" |
|
|
android:visibility="visible" |
|
|
android:visibility="visible" |
|
|
app:icon="@drawable/ic_not_liked" |
|
|
app:icon="@drawable/ic_not_liked" |
|
|
app:iconGravity="top" |
|
|
|
|
|
app:iconSize="16dp" |
|
|
|
|
|
|
|
|
app:iconGravity="textStart" |
|
|
|
|
|
app:iconPadding="0dp" |
|
|
|
|
|
app:iconSize="24dp" |
|
|
app:iconTint="@color/white" |
|
|
app:iconTint="@color/white" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintEnd_toStartOf="@id/comment" |
|
|
app:layout_constraintEnd_toStartOf="@id/comment" |
|
|
app:layout_constraintStart_toEndOf="@id/caption_toggle" |
|
|
app:layout_constraintStart_toEndOf="@id/caption_toggle" |
|
|
app:layout_constraintTop_toTopOf="@id/caption_toggle" |
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/buttons_barrier" |
|
|
app:rippleColor="@color/grey_300" |
|
|
app:rippleColor="@color/grey_300" |
|
|
tools:visibility="visible" /> |
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--android:text="@string/comment" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
app:iconGravity="top"--> |
|
|
<com.google.android.material.button.MaterialButton |
|
|
<com.google.android.material.button.MaterialButton |
|
|
android:id="@+id/comment" |
|
|
android:id="@+id/comment" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
android:layout_width="0dp" |
|
|
android:layout_width="0dp" |
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:text="@string/comment" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
|
|
|
android:layout_height="48dp" |
|
|
android:visibility="visible" |
|
|
android:visibility="visible" |
|
|
app:icon="@drawable/ic_outline_comments_24" |
|
|
app:icon="@drawable/ic_outline_comments_24" |
|
|
app:iconGravity="top" |
|
|
|
|
|
app:iconSize="16dp" |
|
|
|
|
|
|
|
|
app:iconGravity="textStart" |
|
|
|
|
|
app:iconPadding="0dp" |
|
|
|
|
|
app:iconSize="24dp" |
|
|
app:iconTint="@color/white" |
|
|
app:iconTint="@color/white" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintEnd_toStartOf="@id/player_controls_toggle" |
|
|
app:layout_constraintEnd_toStartOf="@id/player_controls_toggle" |
|
|
app:layout_constraintStart_toEndOf="@id/like" |
|
|
app:layout_constraintStart_toEndOf="@id/like" |
|
|
app:layout_constraintTop_toTopOf="@id/caption_toggle" |
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/buttons_barrier" |
|
|
app:rippleColor="@color/grey_300" |
|
|
app:rippleColor="@color/grey_300" |
|
|
tools:visibility="visible" /> |
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--android:text="@string/controls" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
app:iconGravity="top"--> |
|
|
<com.google.android.material.button.MaterialButton |
|
|
<com.google.android.material.button.MaterialButton |
|
|
android:id="@+id/player_controls_toggle" |
|
|
android:id="@+id/player_controls_toggle" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
android:layout_width="0dp" |
|
|
android:layout_width="0dp" |
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:text="@string/controls" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
|
|
|
android:layout_height="48dp" |
|
|
android:visibility="gone" |
|
|
android:visibility="gone" |
|
|
app:icon="@drawable/ic_play_circle_outline_24" |
|
|
app:icon="@drawable/ic_play_circle_outline_24" |
|
|
app:iconGravity="top" |
|
|
|
|
|
app:iconSize="16dp" |
|
|
|
|
|
|
|
|
app:iconGravity="textStart" |
|
|
|
|
|
app:iconPadding="0dp" |
|
|
|
|
|
app:iconSize="24dp" |
|
|
app:iconTint="@color/white" |
|
|
app:iconTint="@color/white" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintEnd_toStartOf="@id/save" |
|
|
app:layout_constraintEnd_toStartOf="@id/save" |
|
|
app:layout_constraintStart_toEndOf="@id/comment" |
|
|
app:layout_constraintStart_toEndOf="@id/comment" |
|
|
app:layout_constraintTop_toTopOf="@id/caption_toggle" |
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/buttons_barrier" |
|
|
app:rippleColor="@color/grey_300" |
|
|
app:rippleColor="@color/grey_300" |
|
|
tools:visibility="visible" /> |
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--android:text="@string/save" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
app:iconGravity="top"--> |
|
|
<com.google.android.material.button.MaterialButton |
|
|
<com.google.android.material.button.MaterialButton |
|
|
android:id="@+id/save" |
|
|
android:id="@+id/save" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
android:layout_width="0dp" |
|
|
android:layout_width="0dp" |
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:text="@string/save" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
|
|
|
android:layout_height="48dp" |
|
|
android:visibility="visible" |
|
|
android:visibility="visible" |
|
|
app:icon="@drawable/ic_outline_class_24" |
|
|
app:icon="@drawable/ic_outline_class_24" |
|
|
app:iconGravity="top" |
|
|
|
|
|
app:iconSize="16dp" |
|
|
|
|
|
|
|
|
app:iconGravity="textStart" |
|
|
|
|
|
app:iconPadding="0dp" |
|
|
|
|
|
app:iconSize="24dp" |
|
|
app:iconTint="@color/white" |
|
|
app:iconTint="@color/white" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintEnd_toStartOf="@id/download" |
|
|
app:layout_constraintEnd_toStartOf="@id/download" |
|
|
app:layout_constraintStart_toEndOf="@id/player_controls_toggle" |
|
|
app:layout_constraintStart_toEndOf="@id/player_controls_toggle" |
|
|
app:layout_constraintTop_toTopOf="@id/caption_toggle" |
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/buttons_barrier" |
|
|
app:rippleColor="@color/grey_300" |
|
|
app:rippleColor="@color/grey_300" |
|
|
tools:visibility="visible" /> |
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--android:text="@string/action_download" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
app:iconGravity="top"--> |
|
|
<com.google.android.material.button.MaterialButton |
|
|
<com.google.android.material.button.MaterialButton |
|
|
android:id="@+id/download" |
|
|
android:id="@+id/download" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
style="@style/Widget.MaterialComponents.Button.TextButton" |
|
|
android:layout_width="0dp" |
|
|
android:layout_width="0dp" |
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:text="@string/action_download" |
|
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
|
|
|
android:layout_height="48dp" |
|
|
android:visibility="visible" |
|
|
android:visibility="visible" |
|
|
app:icon="@drawable/ic_download" |
|
|
app:icon="@drawable/ic_download" |
|
|
app:iconGravity="top" |
|
|
|
|
|
app:iconSize="16dp" |
|
|
|
|
|
|
|
|
app:iconGravity="textStart" |
|
|
|
|
|
app:iconPadding="0dp" |
|
|
|
|
|
app:iconSize="24dp" |
|
|
app:iconTint="@color/white" |
|
|
app:iconTint="@color/white" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
app:layout_constraintStart_toEndOf="@id/save" |
|
|
app:layout_constraintStart_toEndOf="@id/save" |
|
|
app:layout_constraintTop_toTopOf="@id/caption_toggle" |
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/buttons_barrier" |
|
|
app:rippleColor="@color/grey_300" |
|
|
app:rippleColor="@color/grey_300" |
|
|
tools:visibility="visible" /> |
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|