Use @FindAll to locate a list of elements

I’m having trouble locating a list of elements using @FindAll annotation. Basically I want to achieve List<MobileElement> elements = driver.findElementsByClassName("android.widget.RelativeLayout"); using @FindAll.

I’ve tried following methods:
@FindAll({@FindBy(className = "android.widget.RelativeLayout")}) private List<MobileElement> elements;

@FindBys({@FindBy(className = "android.widget.RelativeLayout")}) private List<MobileElement> elements;

@FindAll(@FindBy(className = "android.widget.RelativeLayout")) private List<MobileElement> elements;

But the IDE says “Private field ‘elements’ is never assigned”, and the list is empty.

Anyone knows how to use @FindAll or @FindBys to do that? Any help is appreciated!

I want to locate all 3 RelativeLayouts and put them in a list.