【发布时间】:2015-12-09 18:51:25
【问题描述】:
我正在尝试将微调器加载到我的布局中并不断收到此错误:
找不到以下类: - Spinner(更改为 android.widget.Spinner,修复构建路径,编辑 XML)
这是我的 xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<Spinner
android:id="@+id/spn_dates"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="displayDatesToSpiner" />
<ListView
android:id="@+id/LST_bought_products"
android:layout_width="match_parent"
android:layout_height="302dp" >
</ListView>
</LinearLayout>
谢谢
【问题讨论】:
-
尝试清理项目
-
或者重启Eclipse:图形布局插件可能卡在某个地方。
-
以上方法均无效
-
我也被这个问题困住了。 :(
标签: android