我正在尝试使用 org.panel 包在 android 中实现自上而下的滑动抽屉。但是我得到了一些错误。
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'linearFlying' in package 'org.panel'
- error: No resource identifier found for attribute 'position' in package 'org.panel'
- error: No resource identifier found for attribute 'closedHandle' in package
'org.panel'
- error: No resource identifier found for attribute 'animationDuration' in package
'org.panel'
- error: No resource identifier found for attribute 'openedHandle' in package
'org.panel'
这是我找到并尝试运行的 xml 代码:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:panel="http://schemas.android.com/apk/res/org.panel"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<org.panel.Panel
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/topPanel"
android:paddingBottom="20dip"
panel:position="top"
panel:animationDuration="1000"
panel:linearFlying="true"
panel:openedHandle="@drawable/ribbon"
panel:closedHandle="@drawable/ribbon">
<Button
android:id="@+id/panelHandle"
android:layout_width="fill_parent"
android:layout_height="33dip" />
<LinearLayout
android:id="@+id/panelContent"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="From the Top -> Down"
android:textSize="16dip"
android:padding="4dip"
android:textStyle="bold" />
<ImageView
android:src="@drawable/ribbon"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</org.panel.Panel>
</LinearLayout>
</FrameLayout>
如何摆脱这些错误?