I am trying to reuse the header layout for contact details display view.
I was able to add the widget of ContactHeaderWidget to my XML file as it is in this file and it shows up empty when I run the apk.
But now how do I set the name of the contact, and the image of the contact?
I've tried the method in line 197 here but I couldn't import the necessary files as that would be line 28, which is not available for me.
import com.android.internal.widget.ContactHeaderWidget;