I am automating a calendar feature in an Android app using Appium. The developers have set content-desc for us to be used as accessibility ids. For simple elements like buttons it works like a charm. But we have a problem automating the main calendar view which actually is a two dimensional list view, where multiple events are present under weekdays for a week view.
Till now we were having unique accessibility ids for each day and event using indexes so we had as an example here,
content desc - day_[index] , where index is an integer from 1 to 7
And for each day the events:
content desc - event_[day index]_[event index]
All was going perfectly but then we had to make the App usable for voice over so the above complex programming content-desc values had to be replaced with user friendly texts. Now, my problem is how and which Android locators are best to give our values?