Question about creating custom widget

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Question about creating custom widget

Postby silverburgh.meryl » Thu Feb 12, 2009 2:15 am

Hi,

I am trying to understand Custom Widget example in android , specifically the LableView in the android sample.

In the custom_view_1.xml, it has
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.example.android.apis"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

Can you please tell me where is the scheme 'xmlns:app' defined? How can I do the same for my application.

I tried to copy that line to my layout.xml file, I get this error in eclipse:

Description Resource Path Location Type
ERROR No resource identifier found for attribute 'myTestAttribute' in package 'com.example.android.apis' calculator.xml Instrumentation/res/layout line 50 aapt Problem

Thank you for any help.
silverburgh.meryl
Junior Developer
Junior Developer
 
Posts: 23
Joined: Sun Feb 08, 2009 11:17 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests