Android 2.2 プロジェクトで Fragments と ActionBar を使用しようとしています。「?android:attr/actionBarSize」を使用するとエラーが発生します。その値を正しく取得および設定するにはどうすればよいですか?
例:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/frags">
<fragment class="com.example.android.hcgallery.TitlesFragment"
android:id="@+id/frag_title"
android:visibility="gone"
android:layout_marginTop="?android:attr/actionBarSize"
android:layout_width="@dimen/titles_size"
android:layout_height="match_parent" />
<fragment class="com.example.android.hcgallery.ContentFragment"
android:id="@+id/frag_content"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
エラー: 指定された名前 (「layout_marginTop」で値「?android:attr/actionBarSize」) に一致するリソースが見つかりませんでした。