开发者

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

开发者 https://www.devze.com 2023-03-31 07:02 出处:网络
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):

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

精彩评论

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