gpt4 book ai didi

Android:如何引用驻留在我的应用引用的库中的样式?

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:47:44 24 4
gpt4 key购买 nike

我创建了一个自定义 View ,它位于我在我的应用程序中引用的库中。在库中,我声明了 View 使用的样式。在我的应用程序中,我使用库中的自定义 View :

<nefarious.library.myappname.views.DragDropList
xmlns:ddl="http://schemas.android.com/apk/res/nefarious.library.myappname"
android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:choiceMode="singleChoice"
android:clickable="true"
android:longClickable="true"
android:focusable="true"
android:hapticFeedbackEnabled="true"
android:cacheColorHint="#00000000"
ddl:normalHeight="@dimen/list_item_height"
ddl:doubleHeight="@dimen/list_item_height_doubled"
ddl:grabber="@id/grabber"
ddl:grabberPadding="30dip"
ddl:dragndropBackground="@color/moola_light" />

Eclipse 似乎在查找样式化时遇到了问题。 Eclipse 告诉我它无法为我的每一个可设置样式的属性找到资源标识符。

如何让我的应用程序看到库中的样式?

我的问题就是这个:

Specifying Android project dependencies (in Eclipse)

似乎还没有回答。

最佳答案

由于您的库未打包为 apk,因此您必须从 http://schemas.android.com/apk/res/nefarious.library.myappname 更改自定义 sheme至 http://schemas.android.com/res/nefarious.library.myappname .希望对你有帮助

关于Android:如何引用驻留在我的应用引用的库中的样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3428784/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com