0
我已經導入viewpagerindicator,但是當我編譯項目時,編譯器顯示錯誤。 錯誤消息是:錯誤:找不到包'com.example.sample'中屬性'lineWidth'的資源標識符 我使用的IDE是Intellij。 我該如何解決這個問題? 謝謝。Android版面錯誤:找不到包含屬性'lineWidth'的資源標識
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.viewpagerindicator.LinePageIndicator
android:id="@+id/indicator"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="3dp"
app:lineWidth="25dp" />
</RelativeLayout>
謝謝,我解決了這個錯誤。但我有其他問題:在viewpagerindicator庫的values文件夾中有其他vip_xxx.xml文件,我需要在我的項目的值文件夾中添加該文件? – Elirex 2014-12-11 06:57:27
是的。您需要添加所有vpi__colors,vpi__defaults,vpi__styles文件。 – 2014-12-11 07:00:57