0
是否可以使用ViewPager替換FrameLayout中的片段與.replace()
?因爲兩者都是ViewGroups。在framelayout中動態添加Viewpager
例如,在XML中,我只有
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<FrameLayout
android:id ="@+id/content"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
和我想更換與在運行時保持一個片段到ViewPager片段的ID的內容的FrameLayout。可能嗎??
哇,我會試試看,謝謝! – XepterX