リソースクラスの定数がADT 14に格納されている方法を変更しましたが、今度はr.id.item
にエラーが発生するので、xmlアイテムのid
を取得するにはどうすればよいですか?例えば、これは私にエラーxml idがアイスクリームサンドイッチにあります
mPager = (ViewPager)findViewById(R.id.pager);
を与えるこれは私のxml
<?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="fill_parent"
android:orientation="vertical" >
<android.support.v4.view.ViewPager
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/pager"/>
</LinearLayout>
を取得するには、エラーの過去
(スイッチを除いて、でもライブラリプロジェクトで)罰金であるということですか?彼らは図書館プロジェクトでのみ変更されました。編集:どのようなエラーですか? – dten
そのlogcatエラーではなく、私はコンパイルできません。エラーは 'IDは解決できないか、フィールドではない'フラグメントページャのサポートの例をテストしようとしているhttp://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app /FragmentPagerSupport.html – tyczj