【问题标题】:Error: No resource identifier found for attribute 'groupindicator' in package 'android'错误:在包“android”中找不到属性“groupindicator”的资源标识符
【发布时间】:2012-03-22 02:56:35
【问题描述】:

我正在关注位于here 的教程。但我不断收到与 android:groupindicator 相关的 XML 代码错误。

这里是相关的xml。

           <LinearLayout
                android:id="@+id/tab2"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:orientation="vertical"
                android:paddingTop="70dp" >

                <expandablelistview
                    android:id="@+id/android:list"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:groupindicator="@drawable/group_indicator" >

                    <textview
                        android:id="@+id/android:empty"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:text="@string/main_no_items" >
                    </textview>
                </expandablelistview>
            </LinearLayout>

确切的错误如下。

[2012-03-21 21:51:44 - FoodSubs] C:\.......res\layout\food_display.xml:55: error: No resource identifier found for attribute 'groupindicator' in package 'android'

我已经检查了好几次,但我没有任何运气。我相信这将是显而易见的,但任何帮助将不胜感激。

【问题讨论】:

  • 可能是SDK问题?你定义的 minSDK 是什么?
  • - 2.1

标签: android layout expandablelistview


【解决方案1】:

android:groupindicator 更改为android:groupIndicator

【讨论】:

  • 好的,这确实解决了这个问题。奇怪的是它对此如此挑剔。谢谢。
猜你喜欢
  • 2013-12-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多