Is it possible to use the Google places API in this layout:

I highlighted the EditText field where i want to use the API in.
I've already searched for numerous guides on how to do this but it seems all of them use deprecated code. I'm also fairly new to Fragments but i would like to get to know more of this topic.