是否有可能包含一个带有 TextView、Editext 的块和一个包含带有(复选框、列表、复选框等)的 PreferenceScreen 的第二个块的视图
我想做的就是这样想。第一个块有 2 个 EditText 和 2 个 TextView 用于 Title 和 Message。在第二个区块(底部)中,我想配置一些 stoof。
请问我该怎么做。我希望底部块看起来像一个列表视图。当我在每个项目上悬停时,我希望这个项目看起来像一个列表视图项目
我试过这样,但它不起作用!我将膨胀的类定义为 MyActivity 类中的公共静态类。我究竟做错了什么?
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/FrameLayout1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <ScrollView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:orientation="vertical" >             
            <view
                class="com.app.MyActivity$PrefsFragment"
                id="@+id/prayerFormPref"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                />
        </LinearLayout>
    </ScrollView>
</FrameLayout>