我有一个自定义视图,它位于我在我的应用程序中引用的库中.在库中,我声明了一个样式,视图使用了它.在我的应用程序中,我正在使用库中的自定义视图:
<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" />
Run Code Online (Sandbox Code Playgroud)
Eclipse似乎在查找样式时遇到问题.Eclipse告诉我它找不到每个可设置属性的资源标识符.
如何让我的应用程序从库中查看样式?
我的问题正是这个问题:
这似乎没有得到回答.
ndo*_*ngo 12
由于YOUT库不打包为APK,你必须改变从定制sheme http://schemas.android.com/apk/res/nefarious.library.myappname到http://schemas.android.com/res/nefarious .library.myappname.我希望它会有所帮助
| 归档时间: |
|
| 查看次数: |
468 次 |
| 最近记录: |