1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| package com.beloo.widget.chipslayoutmanager.gravity;
|
| import com.beloo.widget.chipslayoutmanager.SpanLayoutChildGravity;
|
| public class CustomGravityResolver implements IChildGravityResolver {
|
| @SpanLayoutChildGravity
| private int gravity;
|
| public CustomGravityResolver(int gravity) {
| this.gravity = gravity;
| }
|
| @Override
| @SpanLayoutChildGravity
| public int getItemGravity(int position) {
| return gravity;
| }
| }
|
|