1
夥計們! 我檢查了Android Compability lib中的這些樣本。我怎麼也找不到刪除標記爲紅色的白框(adown和頁面之間):如何擺脫ViewPager樣本中的白色框架
夥計們! 我檢查了Android Compability lib中的這些樣本。我怎麼也找不到刪除標記爲紅色的白框(adown和頁面之間):如何擺脫ViewPager樣本中的白色框架
在fragment_pager_list.xml文件中刪除從根的LinearLayout的背景。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:drawable/gallery_thumb"> <-- Remove this background
</LinearLayout>
所以,你必須:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>