我正在尝试在片段中使用的 ViewPager 中使用 Christophe Versieux 出色的 HoloEverywhere 库。
如果我的片段有以下布局......
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:holo="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Roboto Font" />
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1" /></LinearLayout>
然后 Roboto 字体出现在 TextView 中,正如我所期望的那样。
但是,如果 ViewPager 膨胀的视图中存在相同的 TextView xml,则 Roboto 字体不会出现在寻呼机的 textview 中。它只是默认字体。
我错过了什么?