Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Android Lists and Adapters (2015) Standard ListViews Introducing ListView and ListActivity

Mustafa Ogün Öztürk
Mustafa Ogün Öztürk
3,468 Points

Replacing AppCompatActivity with ListActivity

Hi all

When i replace AppCompatActivity with ListActivity, how can my app be backwards compatible ? Do i have any backwards compatibility issues ?

Thanks

Ben Jakuben SIr, can you please answer this question, Replacing AppCompactActivity with ListActivity for what? My app behaves same in both cases, with AppCompactActivity and with ListActivity

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

You'll actually want to use RecyclerViews instead of ListViews. We show ListViews in this course because, at the time it was published, ListViews were still available and still widely used, even though people were switching to RecyclerViews. Now you will want to just use RecyclerViews. In the next version of this course we will omit the material on ListViews.

That means at this video, you can switch to ListActivity and don't worry about backwards compatibility. That will be addressed when you switch things over to RecyclerViews later in the course.