Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement a UI similar to Lollipop's recent apps UI?

I need to implement a UI which looks same as the UI used in Lollipop's recent apps .I'm attaching the screenshot .enter image description here

1) Can I implement it by extending any ViewGroup(AbsListview , AdapterView etc) and laying out the children accordingly with user swipe actions??

2) Am I not supposed to use 'Views' as each items , and use a screenshot of the 'View' as an item(Since Lollipop's items seems to be an image , rather than a 'View' , Google Chrome's tabs also have this same feature)?

3) Is it possible to figure out the implementation of this UI from Android 5 source code?

like image 289
davidvarghese Avatar asked Feb 05 '15 10:02

davidvarghese


People also ask

What does the recent apps button look like?

You'll be able to see your recent apps with a single tap. From the Home screen, tap the Recents icon to the left of the Home button. All of your active or opened apps will be listed. If you've customized your Navigation bar, Recents may be located on the right, unless you're using full screen gestures.


2 Answers

I know it's late. But better late than never. I was also came across the similar requirement and found a library called Material Recents, Which exactly does what you are looking for.

like image 183
Sanif SS Avatar answered Oct 18 '22 01:10

Sanif SS


You can take a look on how it is implemented in the source code. This application is part of the com.android.systemui package, which is part of the AOSP. The source code is available in the package com.android.systemui.recents.

like image 31
Florent Dupont Avatar answered Oct 18 '22 01:10

Florent Dupont