I thought you are not read the Dev Guide clear

you can define like the follow code


-----------------------------------------------------
 <com.foo.bar android:id="@+id/parameterName"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</com.foo.bar>

-----------------------------------------------------------
Done.

Good Luck.


On 4月6日, 下午1时23分, Mark Rosenberg <markrosenberg01460...@gmail.com>
wrote:
> I am following the LabelView.java and associated custom_view_1.xml
> layout files to guide me, but I am perplexed by the xmlns:app
> specification. Mycustomviewis in the com.foo.bar package. What do I
> specify as the xmlns:app value to properly bind my XML layout
> declarations to the attribute set mycustomviewconstructor
> processes?
>
> I've tried xmlns:app="com.foo.bar", xmlns:app="http://
> schemas.android.com/apk/res/com.foo.bar", xmlns:app="http://
> schemas.android.com/com.foo.bar" to no avail.
>
> Its not clear to me why the api example uses an http: scheme in the
> first place. Shouldn't the package name be adequately unique?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to