Proper reuse of ContactHeaderWidget
<p>I am trying to reuse the header layout for contact details display view.</p>

<p>I was able to add the widget of ContactHeaderWidget to my XML file as it is in this <a href="http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=blob;f=res/layout-finger/contact_card_layout.xml;h=6e7056134a5167e7b7cf4981ca21f8e6f8059190;hb=HEAD" rel="nofollow">file</a> and it shows up empty when I run the apk.</p>

<p><strong>But now how do I set the name of the contact, and the image of the contact?</strong></p>

<p>I've tried the method in line 197 <a href="http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=blob;f=src/com/android/contacts/ViewContactActivity.java;h=ca3c08a4f010e9f6d7623c5eeda5f216f141d198;hb=HEAD" rel="nofollow">here</a> but I couldn't import the necessary files as that would be line 28, which is not available for me.</p>

<pre><code>import com.android.internal.widget.ContactHeaderWidget;
</code></pre>
