Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 677637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:03:40+00:00 2026-05-14T01:03:40+00:00

I am trying to reuse the header layout for contact details display view. I

  • 0

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;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:03:41+00:00Added an answer on May 14, 2026 at 1:03 am

    I don’t think you can actually use anything in the com.android.internal package. This may have been possible in the past but doesn’t seem possible now. When I’ve wanted to use things in com.android.internal before I’ve had to find the source and copy it to my project.

    I believe the rationale behind making things under com.android.internal inaccessible was because these classes are subject to change, were only intended for internal OS use, and are not supported for use in 3rd party apps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to reuse methods in DataMapper classes. This might be as well a
I'm trying to use PDO in this way and reuse the output template: selected_products_show
I've been trying to reuse the same layout in several resource folders, without success.
I'm trying to reuse some layout components in android application using <include> tag. I've
I'm trying to reuse some of my view in my storyboard. I start with
I am trying to reuse shape data to dynamically create new shapes in code.
I'm trying to reuse a group of Obj-C clases between iPhone applications. The values
I'm trying to reuse a small chunk of code inside a custom button class.
I am trying to reuse a task in an Ant way: <Target Name=Release> <Message
I'm trying to reuse parts of some JQuery code I've used before for another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.