1

フラグメントで使用される 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 フォントはページャーのテキストビューに表示されません。あくまでデフォルトのフォントです。

私は何が欠けていますか?

4

0 に答える 0