开发者

How do I get rid of a white frame in ViewPager sample

folks! I examined those samples from Android Compability lib. And I can't find how to remov开发者_C百科e those white frames marked red(adown and between pages):

How do I get rid of a white frame in ViewPager sample


In the fragment_pager_list.xml file remove the background from the root 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>

So you have:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
</LinearLayout>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜