Missing styles. Is the correct theme chosen for this layout?

Android安卓中使用ViewPagerIndicator,已经关联library了,布局文件完全拷贝过来的,还是出现这个Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.

Failed to find style 'vpiTabPageIndicatorStyle' in current theme

而且运行后这个TabPagerIndicator不显示,

图片说明
源码:
adapter = new MyAdapter();
vp.setAdapter(adapter); //viewpager
tpi.setVisibility(View.VISIBLE); //TabPagerIndicator
tpi.setViewPager(vp);

    布局文件:
    <?xml version="1.0" encoding="utf-8"?>

xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<com.viewpagerindicator.TabPageIndicator
    android:id="@+id/indicator_newcontext_index"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    android:visibility="gone"
    />
<android.support.v4.view.ViewPager
    android:id="@+id/vp_newcontext_index"
    android:layout_width="fill_parent"
    android:layout_height="0dp"
    android:layout_weight="1"
    />

1个回答

在清单文件中也加上了相应theme android:theme="@style/Theme.PageIndicatorDefaults"

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问