私は自分の設定画面をハニーコムに移植していますが、まだGingerbreadで利用できるはずですから、フラグメントサポートライブラリを使用しています。 Nexus Oneでの電話テスト。フラグメントライブラリーを使用しているときにジンジャーブレッドのリストにあるアーティファクト
これをGingerbreadタブレットで実行すると、すべてうまく見えます。それを電話で実行すると、ピクセルの上部がなくなり、テキストが消えます。リストをスクロールしようとすると(それには4つの要素が含まれているため、全く移動しません)、テキストが表示されます。しかし、アイテムをクリックすると、テキストが再び消えます。
私のフラグメントは、次のようになります。このような
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<fragment class="dk.nindroid.rss.settings.SourceSelector"
android:id="@+id/sources"
android:layout_width="match_parent" android:layout_height="match_parent" />
</FrameLayout>
そしてリスト:なし
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView android:id="@+id/icon"
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_alignParentLeft="true" />
<TextView android:id="@id/android:title"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:gravity="center_vertical"
android:textSize="24sp"
android:textColor="#FFFFFF"
android:paddingLeft="10sp"
android:singleLine="true" />
</LinearLayout>
を、画面は次のようになります。テキストでは、テキストの先頭も切り取られます。
編集:おそらく質問を追加する必要があります:私は間違ったことをしていますか、これはフラグメントサポートライブラリのエラーですか?