在我的應用程序中,我正在使用片段。問題是我無法爲TitlesFragment extends ListFragment
內的列表中的每個項目設置保證金。此外,我必須在DetailsFragment extends Fragment
內顯示的全套數據中添加保證金。如何才能做到這一點?請幫助我。提前致謝。在片段內添加邊距
請參閱我的xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/bg"
android:orientation="vertical" >
<ListView
android:id="@+id/list_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="#00000000"
android:divider="@android:color/transparent"
android:dividerHeight="10dp"
android:scrollbars="none"
android:smoothScrollbar="true" >
</ListView>
其不工作 – Mathew 2012-07-05 12:13:56
發佈您的代碼。它必須工作 – Blackbelt 2012-07-05 12:15:09
我已編輯我的帖子 – Mathew 2012-07-05 12:15:51