D
D
DARKENN2020-04-20 21:51:28
Android
DARKENN, 2020-04-20 21:51:28

How to make recycle fade out?

How to make a smooth disappearing effect (example on the screen)
5e9def1f03bd7963003634.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DARKENN, 2020-04-22
@DARKENN

https://github.com/bosphere/Android-FadingEdgeLayout

I
Ilya Pavlovsky, 2020-04-20
@TranE91

If I understand the functionality correctly, then overlaying a stub view on top with a gradient should be more than enough.

<?xml version="1.0" encoding="utf-8"?>
<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <gradient
        android:startColor="#FF0000FF"
        android:centerColor="#880000FF"
        android:endColor="#000000FF">
    </gradient>
</shape>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question