0

So i have these 2 PlayerView one top one bottom and they are mirrored one on top have full scale then the bottom one is compressed to fill the bottom part. So i want a blurr overlay that will be on top of these 2 players but bottom so that it can blend these 2 players making a cool effect i am trying to archieve or if there is any other way to archieve this

<?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:id="@+id/animated_art_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/black"
    tools:context=".fragments.player.AnimatedArtCoverFragment">

    <!-- Top video: keeps aspect ratio, full width -->
    <androidx.media3.ui.PlayerView
        android:id="@+id/videoTop"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:adjustViewBounds="true"
        android:background="#000000"
        app:layout_constraintTop_toTopOf="parent"
        app:resize_mode="fit"
        app:use_controller="false"
        app:surface_type="texture_view" />

    <androidx.media3.ui.PlayerView
        android:id="@+id/videoBottom"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:background="#000"
        android:scaleY="-1"
        app:layout_constraintTop_toBottomOf="@id/videoTop"
        app:layout_constraintBottom_toBottomOf="parent"
        app:resize_mode="fill"
        app:use_controller="false"
        app:surface_type="texture_view" />

</androidx.constraintlayout.widget.ConstraintLayout>

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.