From the course: Android App Development: Accessibility

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using the ExploreByTouch helper

Using the ExploreByTouch helper - Android Tutorial

From the course: Android App Development: Accessibility

Start my 1-month free trial

Using the ExploreByTouch helper

- [Instructor] Let's integrate the chart accessibility helper to the charts activity. Go ahead and open the activities package and the charts activity. We're going to have to do some modifications to the charts activity. In the set data for chart we have the line entries and the bar entries. Right now they only leave each side of the set data for chart method, we need to make sure that they leave outside of it so we can pass to the chart accessibility helper when we instantiate it. So first let's remove the static keyword. Now let's rename line entries by right clicking on it, going to refactor, rename. Let's say M line entries. Let me hide this pane so we have more space. Now let me do the same thing for the bar entries, right click, refactor, rename, and let's call it M bar entries. Let's copy the type and the name of the variable and let's make sure that we remove the type here so we don't have to redeclare. Let's do the same thing already for the line entries. We can change at the…

Contents