9
android-support-v4でのPreferenceFragmentの代替
PreferenceFragmentsがこのライブラリでサポートされていないことに気付いたので、アプリの開発が突然停止しました。新人のAndroid開発者がこの障害を克服するために使用できる代替手段はありますか? これが今の私のメインウィンドウです <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <FrameLayout android:id="@android:id/tabcontent" android:layout_width="0dp" android:layout_height="0dp" android:layout_weight="0"/> <FrameLayout android:id="@+android:id/realtabcontent" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1"/> </LinearLayout> <TabWidget android:id="@android:id/tabs" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" /> </TabHost> </LinearLayout> 私のTabActivityでは、オンラインで見つけたものを使用しています。これがスニペットです: public class TabControlActivity extends FragmentActivity implements TabHost.OnTabChangeListener { public …