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 6803073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:18:00+00:00 2026-05-26T19:18:00+00:00

I am fairly new to Android development – coming from a WPF background. I

  • 0

I am fairly new to Android development – coming from a WPF background.

I have created two Android projects in my “workspace” in Eclipse. One is called “TestProject”, and the other called “TestLibraryProject”.

Inside of “TestLibraryProject” I have created a custom view called BlueBox.

I now want to use BlueBox in my main layout of “TestProject”. Knowing that I needed to reference “TestLibraryProject” from “TestProject” somehow, I right-clicked on “TestProject” and followed the menu:

Build Path -> Add Libraries

In the dialog that popped up I selected “Android Classpath Container”, and in the immediate dialog following that I chose “TestLibraryProject” from the combo-box.

Two-fold question:
1. Is this the correct way to include “TestLibraryProject” into “TestProject” so that I can use it?
2. How can I now use BlueBox in my main layout XML?

I tried simply putting this in into the XML file:

<mypackage.TestLibraryProject.BlueBox
        android:id="@+id/my_view"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        />

But that didn’t work. I also tried referencing the namespace in my root layout element:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:binding="http://www.gueei.com/android-binding/"
    xmlns:testlibrary="http://schemas.android.com/apk/res/android/mypackage2.TestLibraryProject"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

But that didn’t seem to help.

Any suggestions? Ideas? Help?

Thanks!

  • 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-26T19:18:01+00:00Added an answer on May 26, 2026 at 7:18 pm

    To add a library project first make sure that your library project is actually marked as a library project.

    Right click on the project node –> properties –> Android –> Is Library checkbox –> OK

    Then in your main Android project:

    Right click the project node –> properties –> Android –> Add –>
    Select your library project –> OK –> OK

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

Sidebar

Related Questions

I'm fairly new to eclipse and android development, and I'm having what must be
Another question about my implementation. I am fairly new to java/android coming from a
So I'm fairly new to Android Development and Programming in general... I have a
I'm fairly new to Android, but have done lots of Java/JSP development and HTML
Ok, im fairly new to android but i have managed to teach myself the
I have just began opengl programming in android and i am fairly new to
fairly new to Android development. I made a function for the user to call
im fairly new to android development, but i'm having some trouble trying to make
I'm fairly new to Android development so I ran into a problem with the
ok so im very new to android development and fairly new to java and

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.