Angry [Q] How to make a button on recent app?

hi guys i have plan to make a button on recent app what should i do for the first, make a smali code then layout or something?, anyone can help me? sorry my for my bad english