The text from the large numbers views can be obtained. Let's suppose the layout is:
1. RelativeLayout
0. Text View -> MILES
1. Text View -> 0.50
2. RelativeLayout
0. Text View -> CALORIES
1. Text View -> 100
UiCollection resultsPage = new UiCollection(
new UiSelector().className(android.widget.ListView.class.getName()));
UiObject resultLayout = resultsPage
.getChildByText(new UiSelector()
.className(android.widget.RelativeLayout.class
.getName()), text); //where text can be MILES or CALORIES
UiObject score = resultLayout.getChild(new UiSelector()
.resourceId(the resource id for the large text));
return (String) score.getText();
The idea is to isolate the two Relative layouts and search for the text within them, not the whole GUI. You can use uiautomatorviewer to look at the GUI layout. Maybe you could update the question with the detailed layout.
I could use that in order to give a more accurate answer.