I need to fetch each FrameLayout div elements inside the RecyclerView?

List ulElement = driver.findElements(By.xpath("//android.support.v7.widget.RecyclerView[@index='0']/give_the_class_name_of_framelayout"));

int sz = ulElement.size();

System.out.println(sz);

from above code size of the elements...

but i need to print element names also...

Please help... Thanks in advance