lmw
2024-05-27 c00669a852702e1aa1326872bb916f9a079b57e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.beloo.widget.chipslayoutmanager.layouter.placer;
 
 
import androidx.recyclerview.widget.RecyclerView;
 
class DisappearingPlacerFactory implements IPlacerFactory {
 
    private RecyclerView.LayoutManager layoutManager;
 
    DisappearingPlacerFactory(RecyclerView.LayoutManager layoutManager) {
        this.layoutManager = layoutManager;
    }
 
    @Override
    public IPlacer getAtStartPlacer() {
        return new DisappearingViewAtStartPlacer(layoutManager);
    }
 
    @Override
    public IPlacer getAtEndPlacer() {
        return new DisappearingViewAtEndPlacer(layoutManager);
    }
}